gtctl icon indicating copy to clipboard operation
gtctl copied to clipboard

Proposal: subcommand system

Open sunng87 opened this issue 3 years ago • 0 comments

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

sunng87 avatar Nov 11 '22 02:11 sunng87