Abyss-lord opened a new pull request, #6800:
URL: https://github.com/apache/gravitino/pull/6800

   ### What changes were proposed in this pull request?
   
   Uniform CLI output format for Model, User and Group commands.
   
   
   ### Why are the changes needed?
   
   Uniform CLI output format for Model, User and Group commands.
   
   Fix: #6798 
   
   ### Does this PR introduce _any_ user-facing change?
   
   Users can output multiple entities using the CLI's table format.
   
   ### How was this patch tested?
   
   local test + ut.
   TableFormat test.
   ```bash
   bin/gcli.sh model list -m demo_metalake --name model_catalog.schema --output 
table
   +--------+
   |  Name  |
   +--------+
   | model2 |
   +--------+
   
   bin/gcli.sh model details -m demo_metalake --name 
model_catalog.schema.model2 --output table
   +--------+-------------+----------------+
   |  Name  |   Comment   | Latest version |
   +--------+-------------+----------------+
   | model2 | test rename | 0              |
   +--------+-------------+----------------+
   
   
   bin/gcli.sh user list -m demo_metalake --output table
   +-----------+
   |   Name    |
   +-----------+
   | anonymous |
   | testRole  |
   | test_user |
   +-----------+
   
   bin/gcli.sh user details -m demo_metalake --user testRole --output table
   The user has no roles.
   
   bin/gcli.sh group list -m demo_metalake --output table
   +---------------+
   |     Name      |
   +---------------+
   | group_no_role |
   | test_group    |
   +---------------+
   
   bin/gcli.sh group details -m demo_metalake --group test_group --output table
   The group has no roles.
   ```
   
   PlainFormat test.
   ```bash
   bin/gcli.sh model list -m demo_metalake --name model_catalog.schema
   model2
   
   bin/gcli.sh model list -m demo_metalake --name model_catalog.schema 
   Model name model2, comment: test rename, latest version: 0
   
   bin/gcli.sh user list -m demo_metalake
   anonymous
   testRole
   test_user
   
   bin/gcli.sh user details -m demo_metalake --user testRole
   The user has no roles.
   
   bin/gcli.sh group list -m demo_metalake
   group_no_role
   test_group
   
   bin/gcli.sh group details -m demo_metalake --group test_group
   The group has no roles.
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to