-
Notifications
You must be signed in to change notification settings - Fork 392
feat: adding mandatory flag to string input #844
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
base: main
Are you sure you want to change the base?
Conversation
886336a to
93cd27f
Compare
|
Issue with jdk8 compilation doesn't seem to originate from me, right? (investigating though to be sure) |
|
As suspected I broke something :D, I'll check it |
spring-shell-core/src/main/java/org/springframework/shell/component/StringInput.java
Show resolved
Hide resolved
...hell-samples/src/main/java/org/springframework/shell/samples/standard/ComponentCommands.java
Outdated
Show resolved
Hide resolved
|
I'm just thinking if this is going to be a bit confusing for a user if there's a default value. I'm kinda questioning if there's better way to give indication to user that something is required. |
I also wondered about it. I think the easiest way would be to display Required only if there is no default (and it also matches with what really happens) |
|
@Nico-DF Can you please rebase this PR on the latest |
28e5d29 to
903d2cf
Compare
903d2cf to
6305112
Compare
- Added to flow - Added to component - Add simple test case - Add samples Signed-off-by: Nico-DF <[email protected]>
Signed-off-by: Nico-DF <[email protected]>
Signed-off-by: Nico-DF <[email protected]>
Signed-off-by: Nico-DF <[email protected]>
6305112 to
cfd1619
Compare
|
Update and signing done |
|
Thank you for the quick updates! You were faster than I expected 😂 I was in the middle of a big refactoring when I asked for a rebase and I didn't think your update would come the same day.. Anyway, I will try to rebase your PR myself, otherwise I will let you know. |
|
No problem, was in between tasks at work, so I had time to do it. I can rebase it tomorrow morning if you want, just ping me when all is finished on main |
|
Thank you very much! But no rush, we can merge this (as well as #849) in RC1 next week. I will drop a message here when |
As I began to use spring-shell for some CLI workflow, I found that there is no input required for string (altough there is default).
For the moment, I used this kind of code:
or this as flow:
Which work but it could be simpler, hence my PR.
So I:
Result:


