spring-shell icon indicating copy to clipboard operation
spring-shell copied to clipboard

Single + Default Command

Open danvega opened this issue 1 year ago • 3 comments
trafficstars

What if my application is only going to have a single command? I would love the ability to define a configuration property that says I only have a single command and here is what it is. When I run the program I am dropped into the shell and whatever I type is now the argument to the single default command.

This came up when building a Spring Shell + Spring AI application that interfaces with Open AI's GPT-4. I have included the rep for reference below.

https://github.com/danvega/sbdocs

danvega avatar May 13 '24 00:05 danvega

i think u can see this https://docs.spring.io/spring-shell/reference/customization/singlecommand.html

helloshisheng avatar May 13 '24 02:05 helloshisheng

Ups, linked and closed wrong issue

jvalkeal avatar May 23 '24 07:05 jvalkeal

Little clarification when I discussed with Dan. This is about interactive shell and having that one command there without having a need to define that command.

jvalkeal avatar May 24 '24 05:05 jvalkeal