linode / linode-cli

The official Linode command line interface.
https://linode.com
BSD 3-Clause "New" or "Revised" License
375 stars 135 forks source link

Improve the readability of CLI help page and table outputs #604

Closed yec-akamai closed 5 months ago

yec-akamai commented 5 months ago

📝 Description

Remove the manual rendering logic and make use of the rich tags to render colors. Also improve the readability of tables and help pages. Add a new section Help topics for user who wants to learn any of the topics instead of printing everything on the first page.

✔️ How to Test

make testunit

Verify that x-linode-cli-color input still work: lin linodes ls

See the change for help page: lin See the change for help topic page, i.e. : lin env-vars See the change for operation help page: lin domains See the chanage for table: lin regions ls See the change for overriden table: lin linodes types

📷 Preview

Help page: image

Help topic example (lin env-vars): image

Operation help page: image

Table: image

Overridden table: image