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

Proposal: subcommand system #24

Open
sunng87 opened this issue Nov 11, 2022 · 0 comments
Open

Proposal: subcommand system #24

sunng87 opened this issue Nov 11, 2022 · 0 comments

Comments

@sunng87
Copy link
Member

sunng87 commented Nov 11, 2022

As we are planning to integrate more functionalities into this utility. I'm considering to create a subcommand system ahead of time for future extensibility. The idea is to have three categories of commands:

  • gtctl cluster manages cluster on kubernetes or other platform. We will need to migrate all existing commands into this category, say gtctl create cluster is to be renamed to gtctl cluster create
  • gtctl db manages databases
  • gtctl cloud manages cloud accounts

Note that this architecture is from user's perspective. Internally we don't need to integrate all functionalities into one binary and can utilize an architecture like git or cargo to forward calls to certain binary. For example, gtctl db to gtctl-db

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

No branches or pull requests

2 participants