MaduKan · Stack Overflow

Score of 0

1 answer

99 views

How do I get the output of the previous command using Spring Shell?

How do I read the output of the previous command in Spring Shell? Like this: $ cat hi.txt cat: hi.txt: No such file or directory $ javac hello.java hello.java:3: error: non-static method hi() cannot ...

  • reputation score 9

Score of 1

1 answer

111 views

How to pass the path into a method in Spring Shell?

I want the user to input the path to a file as an argument, but it removes the slashes. For example, when the user inputs C:\test.txt inside the fileRead method, I get c:test.txt. @ShellMethod(value = ...

  • reputation score 93

Score of -2

1 answer

135 views

Spring Shell ComponentFlow and locale

How do I accept non-english characters when using ComponentFlow in Spring Shell? It works fine with non-english characters when using the Shell normally, but when using the ComponentFlow it does not. ...

  • reputation score 141

Score of 0

1 answer

101 views

Groovy Spring Shell program fails when equivalent Java version works

I've run aground when trying to do the Spring Shell Tutorial. I downloaded a basic application from Spring Intializr with the following properties: Project : Gradle - Groovy Spring Boot: 3.3.0 ...

  • reputation score 1304

Score of 0

0 answers

175 views

Spring Shell with docker-compose does not work

I have Spring boot application with Spring shell console. When i running it on a local machine frome IDE everything is good. O wrote Dockerfile and docker-compose to deploy my app, but when i running ...

  • reputation score 1

Score of 1

2 answers

564 views

What is the difference between Spring CLI and Spring Shell

According to my learning, Spring CLI and Spring Shell are tools for building command-line applications, Spring CLI is focused on running Groovy scripts and Spring Boot applications from the command ...

  • reputation score 115

Score of 0

1 answer

77 views

How do I set the {userconfig} location

From the documentation: By default, a log file is generated to a current working directory, which you can dictate by setting spring.shell.config.location. This property can contain a placeholder ({...

  • reputation score 75

Score of 0

1 answer

254 views

Customize help command in Spring Shell 3.1.6

I've built a spring-shell application and I'd like to customize the built-in help command. Currently it looks like this: shell:>help help NAME help - Display help about available commands ...

  • reputation score 75

Score of 2

1 answer

502 views

Spring Shell: required Boolean with non-default value

spring shell version: 3.1.6 In one of my commands, I want to make sure that the end-user specifically indicates whether they either want A or B by using a Boolean. I don't want to make the choice for ...

  • reputation score 414

Read the original on stackoverflow.com ↗