Questions tagged [spring-shell]

Spring Shell is an interactive shell that can be easily extended with commands using a Spring based programming model

Spring Shell's features include

  • A simple, annotation driven, programming model to contribute custom commands
  • Use of Spring Boot auto-configuration functionality as the basis for a command plugin strategy
  • Tab completion, colorisation, and script execution
  • Customisation of command prompt, shell history file name, handling of results and errors
  • Dynamic enablement of commands based on domain specific criteria
  • Integration with the bean validation API
  • Already built-in commands, such as clear screen, gorgeous help, exit
  • ASCII art Tables, with formatting, alignment, fancy borders, etc.

The project homepage can be found at https://projects.spring.io/spring-shell/ while the latest documentation is available at http://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/

81 questions
0
votes
1 answer

Spring-shell usage

I'm trying to use spring-shell. Created such class: @Component public class T implements CommandMarker { public T() { System.out.println("T Constructor"); } @CliCommand(value = "trans", help = "translate") public String…
user_x
  • 657
  • 1
  • 7
  • 16
0
votes
1 answer

Spring Cloud DataFlow shell command "not currently available"

I sometimes get this error: 2016-10-20T15:38:24+0200 WARN main o.s.s.c.SimpleParser:131 - Command 'app register --name email --type source --uri ' was found but is not currently available (type 'help' then ENTER to learn about…
0
votes
1 answer

Run method after startup finishes

I am creating a command line application in java using Spring-shell. I want to implement auto update feature. I want to run the "check for update" code as soon as Spring-shell finish its initialisation. i.e after it prints welcome and version…
Jef
  • 103
  • 1
  • 1
  • 8
0
votes
1 answer

Liquibase Groovy-DSL Spring

I am developing a spring-shell database migration tool. At the moment i try to use liquibase with the groovy-dsl extension. My build.gradle includes the extension jar, also i declared liquibase in the…
Tobias Timm
  • 1,515
  • 12
  • 23
0
votes
1 answer

Autowire object instance in spring shell command?

I have a small server which was in need of a simple console to enter a commands. After a bit of searching i found spring shell, which does the job. Some of my commands need access to the server instance object. How can i (autowire?) my server object…
Tinus Tate
  • 1,988
  • 2
  • 9
  • 26
0
votes
1 answer

How to execute a command in Spring Shell?

I have a problem with executing a command in Spring Shell. I'm using this code to blink my LED on a Raspberry PI but I'm getting a response error in the Tomcat's log. JLineShellComponent shell; Bootstrap bootstrap = new Bootstrap(); shell =…
0
votes
2 answers

How to create a CLI like Spring Shell in Java EE application without spring framework?

I used Spring shell in my project, which works very well. Now we have a Java EE project on the JBoss application server. I would like to have a good CLI, just like the Spring shell. How can this be done?
Alireza Alallah
  • 2,320
  • 25
  • 33
0
votes
1 answer

Spring Frameworks Shell - Adding Colour

I am currently making a app that acts as a shell using the spring framework. In the documentation it says as its based of roo it supports colour on both unix and windows platforms (via jansi) but does not say how to use it. Having @|red text|@ does…
Rhodderz
  • 25
  • 3
0
votes
1 answer

i18n & l10n in Spring-Shell

Thanks for reading this. I am looking to provide i18n in my Spring-Shell application. Specifically, I am looking for the ability to print the help messages within the @CliOption in different languages depending on the locale. I have not found any…
ajj
  • 91
  • 1
  • 9
0
votes
1 answer

How to customize a parser for options in spring shell?

I'm using Spring shell to develop command shell for my project. the problem is as i described below: i need to have some functionality like method overloading in shell. in other words i need to have two commands with same name but different…
Sajad NasiriNezhad
  • 557
  • 1
  • 5
  • 22
0
votes
1 answer

How to enable auto horizontal and vertical scroll in spring shell console output?

I am using Spring Shell. When I try to run it in command prompt, output is longer than command prompt length and lines break to next line. How can I enable scroll or auto scroll for it?
Sajad NasiriNezhad
  • 557
  • 1
  • 5
  • 22
0
votes
2 answers

Spring Shell - usage and execution

I want to integrate Spring Shell within a spring boot application. I am able to execute the examples from the official git-repo. But when migrating the example code to my own project that is very very similar to this code, my individual shell is not…
0
votes
2 answers

want to send the streaming result in to the spring shell

I am using spring shell framework for my cli. I have written some commands where it will display the results once the command is executed in my java application. @CliCommand(value = "add jar", help = "adds a jar resource") public String addJar( …
0
votes
2 answers

Remove commands from Spring-Shell

I'm looking to build a diagnostic utility using Spring-Shell for a tech support team. The idea is to drop the executable jar on a system, run the app and have it run through a bunch of diagnostics. I want to disable/remove some of the commands that…
Adam Erstelle
  • 2,318
  • 3
  • 17
  • 33
0
votes
1 answer

How to create a wizard style console with Spring-Shell

The wizard needs ask few parameters one after the other. eg: name then address then email then passwd and finally send test mail. If the send fails the wizard should start again. How can we implement this wizard.
kiran.kumar M
  • 803
  • 8
  • 24