-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What changes were proposed in this pull request? Add `validate` method to Command, and refactor the validation code. ### Why are the changes needed? Fix: #6086 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? #### UT local ut #### bash ```bash gcli metalake set # Missing --metalake option. gcli metalake details # Missing --metalake option. gcli metalake set -m demo_metalake # Missing --property and --value options. gcli metalake set -m demo_metalake --property propertyA # Missing --value option. gcli metalake set -m demo_metalake --value valA # Missing --property option. gcli metalake details --audit # Missing --metalake option. gcli metalake remove -m demo_metalake # Missing --property option. gcli metalake update -m demo_metalake # The command does nothing. ``` --------- Co-authored-by: roryqi <[email protected]> Co-authored-by: Yuhui <[email protected]> Co-authored-by: Qiming Teng <[email protected]>
- Loading branch information
1 parent
4c886eb
commit c16f595
Showing
8 changed files
with
126 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.