-
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.
[#5831] fix(CLI): Fix CLi gives unexpected output when input tag set …
…command (#5897) ### What changes were proposed in this pull request? Running the command `gcli tag set --metalake metalake_demo` or `gcli tag remove --metalake metalake_demo` gives unexpected output.it should give some help information. ### Why are the changes needed? Fix: #5831 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? local test + UT. ```bash gcli tag set -m demo_metalake # Missing --tag option. gcli tag set -m demo_metalake --tag tagA # Missing --name option. gcli tag remove -m demo_metalake # Missing --tag option. gcli tag remove -m demo_metalake --tag tagA # Missing --name option. gcli tag set --tag tagA --property test # Command cannot be executed. The set command only supports configuring tag properties or attaching tags to entity. gcli tag set --tag tagA --value val1 # Command cannot be executed. The set command only supports configuring tag properties or attaching tags to entity. gcli tag set --metalake demo_metalake --name Hive_catalog --tag tagB tagC # Hive_catalog now tagged with tagA,tagB,tagC gcli tag remove --metalake demo_metalake --name Hive_catalog --tag tagA tagC # Hive_catalog removed tag(s): [tagA, tagC], now tagged with [tagB] gcli tag remove --metalake demo_metalake --name Hive_catalog --tag tagA tagB tagC # Hive_catalog removed tag(s): [tagA, tagC], now tagged with [] ``` --------- Co-authored-by: Justin Mclean <[email protected]> Co-authored-by: Shaofeng Shi <[email protected]> Co-authored-by: roryqi <[email protected]> Co-authored-by: Xun <[email protected]> Co-authored-by: JUN <[email protected]> Co-authored-by: fsalhi2 <[email protected]> Co-authored-by: Jerry Shao <[email protected]> Co-authored-by: Cheng-Yi Shih <[email protected]> Co-authored-by: Qiming Teng <[email protected]> Co-authored-by: FANNG <[email protected]> Co-authored-by: Eric Chang <[email protected]> Co-authored-by: cai can <[email protected]> Co-authored-by: caican <[email protected]> Co-authored-by: Qi Yu <[email protected]> Co-authored-by: Jimmy Lee <[email protected]>
- Loading branch information
1 parent
8273276
commit 9a5fef9
Showing
5 changed files
with
177 additions
and
1 deletion.
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