Skip to content
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

[#6326] improve(CLI): Make CLI more extendable and maintainable. #6327

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Abyss-lord
Copy link
Contributor

What changes were proposed in this pull request?

Make CLI more extendable and maintainable.
design doc: https://docs.google.com/document/d/1JU20XPHBMb-boOhdNmeZC9acyYupuj7EvQKfc1JaJBo/edit?usp=sharing

Why are the changes needed?

Fix: #6326

Does this PR introduce any user-facing change?

No

How was this patch tested?

local test + ut

# ======= METALAKE =======
❯ gcli metalake details -m demo_metalake -i --output table
# +---+---------------+-------------+
# |   |   METALAKE    |   COMMENT   |
# +---+---------------+-------------+
# | 1 | demo_metalake | new comment |
# +---+---------------+-------------+

❯ gcli metalake details -m demo_metalake -i
# demo_metalake, new comment

❯ gcli metalake list  -m demo_metalake -i --output table
# +---+-------------------+
# |   |     METALAKE      |
# +---+-------------------+
# | 1 | demo_metalake     |
# | 2 | test_cli_metalake |
# | 3 | tyy               |
# | 4 | demo3             |
# | 5 | demo_metalake2    |
# +---+-------------------+

❯ gcli metalake list  -m demo_metalake -i
# demo_metalake
# test_cli_metalake
# tyy
# demo3
# demo_metalake2

❯ gcli metalake details -m demo_metalake -i --output table --quiet
# no output

# ======= CATALOG =======
❯ gcli catalog list  -m demo_metalake -i --output table
# +---+-------------------+
# |   |     CATALOG       |
# +---+-------------------+
# | 1 | File              |
# | 2 | Hive_catalog      |
# | 3 | Iceberg_catalog   |
# | 4 | Mysql_catalog     |
# | 5 | Test_hive_catalog |
# +---+-------------------+

❯ gcli catalog list  -m demo_metalake -i
# File
# Hive_catalog
# Iceberg_catalog
# Mysql_catalog
# Test_hive_catalog

❯ gcli catalog details  -m demo_metalake --name Hive_catalog  -i --output table
# +---+--------------+------------+----------+-------------+
# |   |   CATALOG    |    TYPE    | PROVIDER |   COMMENT   |
# +---+--------------+------------+----------+-------------+
# | 1 | Hive_catalog | RELATIONAL | hive     | new comment |
# +---+--------------+------------+----------+-------------+

❯ gcli catalog details  -m demo_metalake --name Hive_catalog  -i
# Hive_catalog, RELATIONAL, hive, new comment

@Abyss-lord
Copy link
Contributor Author

Abyss-lord commented Jan 19, 2025

@justinmclean @tengqm , could you please review this PR when you have time? I’d really appreciate your feedback. plz review my new design

@tengqm
Copy link
Contributor

tengqm commented Jan 19, 2025

I'll refrain from leaving comments here till I get a whole picture about where we are heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Make CLI more extendable and maintainable
2 participants