Closed C-Otto closed 11 months ago
When I provide two command settings, I expect both to work. However, with the code shown below the second command cannot be used. Using first and pressing <tab> yields the second command (first second).
command
second
first
<tab>
first second
@Command(description = "x", command = {"first", "second"})
org.springframework.shell:spring-shell-starter:3.1.5
Yes this would create command first second. There is an alias field in @Command you can use.
alias
@Command
Thanks, I didn't know about the existence of alias.
When I provide two
command
settings, I expect both to work. However, with the code shown below thesecond
command cannot be used. Usingfirst
and pressing<tab>
yields the second command (first second
).@Command(description = "x", command = {"first", "second"})
org.springframework.shell:spring-shell-starter:3.1.5