upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

Move all `cloud` commands to top-level root #117

Closed hasheddan closed 3 years ago

hasheddan commented 3 years ago

Description of your changes

Moves all cloud commands to the top-level root, resulting in:

This is a fairly large breaking change, but should be straightforward for users to adapt to. The most noticeable change is that the on-disk config file structure is slightly modified. But a user running up login will automatically have their config file restructured in the new format. They will be required to login each profile they previously had.

Expand for prior command structure ``` 🤖 (up) up -h Usage: up The Upbound CLI Flags: -h, --help Show context-sensitive help. -v, --version Print version and exit. Commands: license Print Up license information. cloud cloud login Login to Upbound Cloud. cloud logout Logout from Upbound Cloud. cloud controlplane attach Attach a self-hosted control plane. cloud controlplane create Create a hosted control plane. cloud controlplane delete Delete a control plane. cloud controlplane list List control planes for the account. cloud controlplane kubeconfig get --token=STRING Get a kubeconfig for a control plane. cloud controlplane token create Create a control plane token. cloud controlplane token delete Delete a control plane token. cloud controlplane token list List tokens for the control plane. enterprise enterprise install Install enterprise. enterprise uninstall Uninstall enterprise. enterprise upgrade Upgrade enterprise. uxp uxp install [] Install UXP. uxp uninstall Uninstall UXP. uxp upgrade [] Upgrade UXP. uxp connect Connect UXP to Upbound Cloud. xpkg xpkg build Build a package. xpkg push Push a package. Run "up --help" for more information on a command. ```
Expand for new command structure ``` 🤖 (up) up -h Usage: up The Upbound CLI Flags: -h, --help Show context-sensitive help. -v, --version Print version and exit. Commands: license Print Up license information. login Login to Upbound. logout Logout of Upbound. controlplane controlplane attach Attach a self-hosted control plane. controlplane create Create a hosted control plane. controlplane delete Delete a control plane. controlplane list List control planes for the account. controlplane kubeconfig get --token=STRING Get a kubeconfig for a control plane. controlplane token create Create a control plane token. controlplane token delete Delete a control plane token. controlplane token list List tokens for the control plane. enterprise enterprise install Install enterprise. enterprise uninstall Uninstall enterprise. enterprise upgrade Upgrade enterprise. uxp uxp install [] Install UXP. uxp uninstall Uninstall UXP. uxp upgrade [] Upgrade UXP. uxp connect Connect UXP to Upbound Cloud. xpkg xpkg build Build a package. xpkg push Push a package. Run "up --help" for more information on a command. ```

Fixes #114

I have:

How has this code been tested

I have tested each set of the commands that have been moved, including: