feat: adding mandatory flag to string input#844
feat: adding mandatory flag to string input#844Nico-DF wants to merge 3 commits intospring-projects:mainfrom
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
Outdated
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
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 |
|
Hi @Nico-DF I think we can proceed and merge this PR now. Can you please rebase it on the latest Please exclude the changes in samples, they are outdated. Thank you upfront. |
- Added to flow - Added to component - Add simple test case - Add samples Signed-off-by: Nico-DF <difalco.nicola@gmail.com>
Signed-off-by: Nico-DF <difalco.nicola@gmail.com>
Signed-off-by: Nico-DF <difalco.nicola@gmail.com>
cfd1619 to
db745c6
Compare
|
Done 👍 |
- Added to flow - Added to component - Add simple test case - Add samples PR #844 Signed-off-by: Nico-DF <difalco.nicola@gmail.com>
|
Thank you for the updates!
I tired locally and it compiles! Ship it 😂 2bdf843 Thank you for your contribution! |
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:


