Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Handy additions for interactive mode #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mcseemz opened this issue Jul 18, 2022 · 1 comment
Closed

Handy additions for interactive mode #469

mcseemz opened this issue Jul 18, 2022 · 1 comment

Comments

@mcseemz
Copy link

mcseemz commented Jul 18, 2022

Hey, respect to developers.

Spring Shell in interactive mode turned out to be handy for text-based games. But there are two cases that make things more complex than desired:

  1. Component Flow for multiple item selector (.withMultipleItemSelector) cannot control the initial selection state for selectItems. selectItems always appear deselected for the user.
  2. It is not possible to have command already suggested in the shell input. e.g. shell:>start, with further control over suggestions depending on the current application state.

If that can be addressed, would make life a little easier.
Thanks!

@jvalkeal
Copy link
Contributor

  1. It's worked on pr Add the possibility of default selection to MultiItemSelector #468
  2. As we're first completing commands(those are known from command registry) and then command options(which can be customised).

Not sure about programmatic suggestion without user interaction as I hear about an idea first time. Depends if jline has some features around it.

@spring-projects spring-projects locked and limited conversation to collaborators Jul 19, 2022
@jvalkeal jvalkeal converted this issue into discussion #471 Jul 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants