-
Notifications
You must be signed in to change notification settings - Fork 406
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
[#6136] improvement(CLI): Move check for enable and disable command in Gravitino CLI to command #6535
base: main
Are you sure you want to change the base?
Conversation
…mand in Gravitino CLI to command move check for enable and disable command in ManageCatalog.
…mand in Gravitino CLI to command move check for enable and disable command in ManageMetalake.
@justinmclean @tengqm could you please review this PR when you have time? I’d really appreciate your feedback. |
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.
LGTM Thanks
@Override | ||
public Command validate() { | ||
if (line.hasOption(GravitinoOptions.ENABLE) && line.hasOption(GravitinoOptions.DISABLE)) { | ||
exitWithError(ErrorMessages.INVALID_ENABLE_DISABLE); |
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.
The INVALID_ENABLE_DISABLE
message text can be improved.
The --enable and the --disable options are mutual exclusive.
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.
@tengqm Thank you , I just change the error message.
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.
It should be "The --enable and the --disable options are mutually exclusive."
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.
Also, I'm wondering if the reading level for that is a bit high "Unable to use --enable and --disable at the same time." is easier to understand. (Grade 9 vs Grade 2) The rest of the error messages are at a lower reading grade than Grade 9.
…mand in Gravitino CLI to command fix some bugs.
@justinmclean I’ve finished updating the code. Please take a look at the PR again when you have time. |
/lgtm |
…mand in Gravitino CLI to command fix some bugs.
@justinmclean I’ve finished updating the code. Please take a look at the PR again when you have time. I change the error message to "Unable to use --enable and --disable at the same time." |
/lgtm again |
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.
LGTM
What changes were proposed in this pull request?
Move check for enable and disable command in Gravitino CLI to command
Why are the changes needed?
Fix: #6136
Does this PR introduce any user-facing change?
No
How was this patch tested?
local test