linode-cli icon indicating copy to clipboard operation
linode-cli copied to clipboard

display available commands in a single column, sorted alphabetically

Open bavedarnow opened this issue 3 years ago • 1 comments

bavedarnow avatar Jul 18 '22 18:07 bavedarnow

Why?

Also, if doing this we should do it for everything displayed in the help; currently everything else shows in tables of three columns each:

CLI user management commands:
┌─────────────┬──────────┬────────────┐
│ configure   │ set-user │ show-users │
│ remove-user │          │            │
└─────────────┴──────────┴────────────┘

CLI Plugin management commands:
┌─────────────────┬───────────────┐
│ register-plugin │ remove-plugin │
└─────────────────┴───────────────┘

Other CLI commands:
┌────────────┐
│ completion │
└────────────┘

Available commands:
┌────────────────────┐
│ account            │
│ databases          │
│ domains            │
│ events             │
│ firewalls          │
│ images             │
│ kernels            │
│ linodes            │
│ lke                │
│ longview           │
│ managed            │
│ networking         │
│ nodebalancers      │
│ object-storage     │
│ payment-methods    │
│ phone              │
│ profile            │
│ regions            │
│ security-questions │
│ service-transfers  │
│ sshkeys            │
│ stackscripts       │
│ tags               │
│ tickets            │
│ users              │
│ vlans              │
│ volumes            │
└────────────────────┘
Available plugins:
┌──────────────┬─────┬─────┐
│ image-upload │ obj │ ssh │
└──────────────┴─────┴─────┘

Why? Mostly because I wasn't able to quickly create 3 columns that were sorted alphabetically, like so:

│ account            │ longview           │ security-questions │
│ databases          │ managed            │ service-transfers  │
│ domains            │ networking         │ sshkeys            │
│ events             │ nodebalancers      │ stackscripts       │
│ firewalls          │ object-storage     │ tags               │
│ images             │ payment-methods    │ tickets            │
│ kernels            │ phone              │ users              │
│ lke                │ profile            │ vlans              │
│ linodes            │ regions            │ volumes            │ 

bavedarnow avatar Jul 20 '22 17:07 bavedarnow