Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Add consistency for CLI commands #875

Open
burdiyan opened this issue Oct 9, 2018 · 1 comment
Open

Add consistency for CLI commands #875

burdiyan opened this issue Oct 9, 2018 · 1 comment

Comments

@burdiyan
Copy link

burdiyan commented Oct 9, 2018

I think ks CLI lacks some consistency regarding command names. Especially the ones for deleting things:

ks pkg remove
ks component rm
ks param delete

It would be great if the UI would be consistent with this kind of things. Otherwise you can never build a mental model around it, IMO.

I like that ks took approach more similar to docker rather than kubectl (I mean that actions are grouped by resource, like ks param <action> instead of kubectl delete <thing>). But if there's no consistency, you either check help all the time, or constantly dealing with errors.

@burdiyan
Copy link
Author

I would suggest the following rules:

  1. ks <command> [<subcommand>] [<action>].
  2. Default actions are create, ls, rm.
  3. If action is not specified and ls is available, use it by default. Like ks component would list components instead of failing.
  4. Gradually deprecate the commands not following the rules.

@burdiyan burdiyan changed the title Add consistency for delete CLI commands Add consistency for CLI commands Oct 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants