-
Notifications
You must be signed in to change notification settings - Fork 382
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
[#5924] improvement(CLI): fix cli list command produce no outputs #5942
Conversation
When using the list command, it’s helpful to provide a friendly reminder if no data is retrieve.
Hi @justinmclean @xunliu @tengqm , could you please review this PR when you have a moment? I’d really appreciate your feedback. |
lgtm |
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListMetalakes.java
Show resolved
Hide resolved
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 again for your work on the CLI.
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListAllTags.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListCatalogs.java
Show resolved
Hide resolved
…stAllTags.java Co-authored-by: Qiming Teng <[email protected]>
Hi @justinmclean , I’ve finished updating the code. Please take a look at the PR again when you have time. |
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListCatalogs.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListFilesets.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListGroups.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListMetalakes.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListSchema.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListTables.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListTopics.java
Outdated
Show resolved
Hide resolved
fix output message "No XXXs" is still a plural.
@justinmclean @xunliu , I’ve finished updating the code. Please take a look at the PR again when you have time. |
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
…ts (apache#5942) ### What changes were proposed in this pull request? When using the list command, it’s helpful to provide a friendly information if no data is retrieve. ### Why are the changes needed? Fix: apache#5924 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? ```bash bin/gcli.sh catalog list -m demo_metalake2 # No catalogs exists. bin/gcli.sh table list -m demo_metalake --name Hive_catalog.empty # output: No tables exists. ``` --------- Co-authored-by: Qiming Teng <[email protected]>
What changes were proposed in this pull request?
When using the list command, it’s helpful to provide a friendly information if no data is retrieve.
Why are the changes needed?
Fix: #5924
Does this PR introduce any user-facing change?
NO
How was this patch tested?