spring-shell
spring-shell copied to clipboard
Spring based shell
Current trouble with jline is that if you don't bind a key in its `BindingReader` we use, things get through into a shell and may mess up terminal itself. We...
If registering `CommandRegistration` into a catalog without defining help options like what happens here: https://github.com/spring-projects/spring-shell/blob/25d249c28dfa37447a3e88bb699afafd3c52107d/spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/CommandCatalogAutoConfiguration.java#L72-L76 that command obviously will not get customised. Should find a good way to also customise...
In the startup log, you will always see the following WARNING : **_The Parser of class org.springframework.shell.jline.ExtendedDefaultParser does not support the CompletingParsedLine interface. Completion with escaped or quoted words won't...
``` [INFO] +- org.springframework.shell:spring-shell-core:jar:2.0.0.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.5.8.RELEASE:compile [INFO] | | +- org.springframework.boot:spring-boot:jar:1.5.8.RELEASE:compile [INFO] | | | \- org.springframework:spring-context:jar:5.0.2.RELEASE:compile [INFO] | | | +- org.springframework:spring-aop:jar:5.0.2.RELEASE:compile [INFO] | | | \-...
``` ComponentFlow.ComponentFlowResult result = componentFlowBuilder.clone().reset() .withConfirmationInput("id") .name("确认删除?") .and() .build() .run(); //输入y/n 之外的其他任意字符 //此时 Context {"id":null} Boolean containsKey = result.getContext().containsKey("id"); // containsKey true Boolean id = result.getContext().get("id"); // throw NoSuchElementException ```...
### Current behaviour: Currently the following registration (assuming there is some pojo named `command`) ``` CommandRegistration.builder() .command("some-command") .withTarget().method(command, "add").and() .withOption().longNames("identity").and() .build(); ``` matches the method ``` public String add(String identity)...
At least macos11 env is now erroring: ``` npm ERR! Traceback (most recent call last): npm ERR! File "/Users/runner/work/spring-shell/spring-shell/e2e/spring-shell-e2e/node_modules/node-gyp/gyp/gyp_main.py", line 42, in npm ERR! import gyp # noqa: E402 npm...
Hi, I am trying to find out how to pipe to a commands standard input. Taking the quick start example: ```shell java -jar demo-0.0.1-SNAPSHOT.jar hello-world boot ``` I would like...
This is an epic issue to add support for external commands. In a nutshell it'd be nice to create other spring-shell applications and run those via main shell instance. Take...