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

Add short hand aliases for named commands #361

Closed
kradalby opened this issue Feb 27, 2022 · 1 comment
Closed

Add short hand aliases for named commands #361

kradalby opened this issue Feb 27, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kradalby
Copy link
Collaborator

kradalby commented Feb 27, 2022

Add some handy aliases for commands, e.g.:

  • namespaces: namespace, ns, user, users
  • nodes: node, machine, machines, no
  • routes: route, r
  • apikeys: apikey, api
  • preauthkeys: preauthkey, authkey, pre

Common subcommands:

  • list: l, ls
  • create: c, new?
  • delete: del
  • expire: exp, e

I think Cobra should support this, so should be relatively trivial to add.

Happy to take more suggestions :)

@kradalby kradalby added enhancement New feature or request good first issue Good for newcomers labels Feb 27, 2022
@e-zk
Copy link
Contributor

e-zk commented Mar 2, 2022

I'm happy to work on this. Do we want all of these aliases or should I just pick a few from the ones you've listed?

I personally think it might be a bit unnecessary to have all of those aliases for nodes. Up to you though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants