-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve Config CLI #41203
Improve Config CLI #41203
Conversation
This comment has been minimized.
This comment has been minimized.
Ah cool, I tried it the other day and it was a bit hard to use. I'll have a look soon. |
Should be easier now :) |
I'm having a look at it now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played with it a bit and here is my feedback.
Not saying everything should be fixed before we merged this PR but I'd like to have your feedback on my comments.
- I think
quarkus config
should display the help rather than defaulting toset
. For me this is too important to push a random default. - I think the feedback should be consistent with the feedback we have when adding an extension for instance.
We have:
In general, we should try to be consistent on the feedback side.
-
When typing
quarkus config enc
, I end up with an error instead of the help being displaying (this is the case inmain
but also in this branch). I created Quarkus CLI - Some expected errors lead to a stacktrace and they shouldn't #41513 because even if you can tweak it here, I think it's something that is not ideal in our Picocli extension. -
I'm not sure of why I have to pass the secret with
--secret
inquarkus config enc --secret=secret
, for the rest you pass the parameters as is (or at least that's what I did and it worked).
Also I have no idea what to do with the output:
Encrypted Secret: DBLLBaf7o_i3u8lmJBb0rKJT13xvBXoQYjVFWFCJACl_tGU
Encryption Key: S6i5aNG6ySALS6021eMKbg
We probably need to explain what to do with it?
OK
OK
Yes, this is an issue with our extension rather than the CLI commands. When I looked into other examples, we also got the same error (for instance,
Strange. It shouldn't be that way anymore. The previous version did have a
OK |
Love it! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some changes here (Moved required options to parameters: SECRET, NAME, VALUE) are not backwards compatible, but I can't find it documented in https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.13 and this PR does not have a breaking-change label. Can you improve this, please? |
Hey @michalvavrik sorry for the inconvenience. We made the changes to fix some of the raised issues, plus make it consistent with other Quarkus CLI commands. I'll add that information now. |
np, but good to have it documented, thanks |
Fixes #41131
remove
command