Add short hand aliases for named commands #138

Closed
opened 2025-12-29 01:23:49 +01:00 by adam · 1 comment
Owner

Originally created by @kradalby on GitHub (Feb 27, 2022).

Originally assigned to: @e-zk on GitHub.

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 :)

Originally created by @kradalby on GitHub (Feb 27, 2022). Originally assigned to: @e-zk on GitHub. 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 :)
adam added the enhancementgood first issue labels 2025-12-29 01:23:49 +01:00
adam closed this issue 2025-12-29 01:23:49 +01:00
Author
Owner

@e-zk commented on GitHub (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.

@e-zk commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#138