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

CLI configuration option for default table layout #969

Open
harridu opened this issue Jul 2, 2024 · 5 comments
Open

CLI configuration option for default table layout #969

harridu opened this issue Jul 2, 2024 · 5 comments
Labels
Feature New feature, not a bug Maybe Undecided whether in scope for the project
Milestone

Comments

@harridu
Copy link

harridu commented Jul 2, 2024

IMHO the ASCII graphics added to the tables provided by various incus commands is pretty much distracting. Some say, its a waste of precious screen space. I would highly appreciate an environment variable or a central config option to make "-f compact" the default, even for the tables hidden deep inside the output of various incus subcommands, eg the table of snapshots for "incus info containername".

Hopefully I am not too blind to see. I am new to Incus, and I haven't found the man page for .config/incus/config.yml yet.

Required information

  • Distribution: Debian
  • Distribution version: 12.6
  • The output of "incus info" or if that fails:
    • Kernel version: Linux srvl051.example.com 6.7.12+bpo-amd64 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux
    • LXC version: 1:5.0.3-2~xgo120+1
    • Incus version: 6.0.0-1~bpo12+1
    • Storage backend in use: lvm
@stgraber
Copy link
Member

stgraber commented Jul 2, 2024

There is a way to do it through aliases.

incus alias add list "list -fcompact"

@harridu
Copy link
Author

harridu commented Jul 2, 2024

root@srvl051:~# incus alias add info "info -fcompact"
root@srvl051:~# incus info first
Error: unknown shorthand flag: 'f' in -fcompact

As written above, a central config option affecting all tables would be nice.

@stgraber stgraber changed the title enhancement request: how to make "-f compact" the default? CLI configuration option for default table layout Jul 3, 2024
@stgraber stgraber added Feature New feature, not a bug Maybe Undecided whether in scope for the project labels Jul 3, 2024
@stgraber stgraber added this to the later milestone Jul 3, 2024
@smemsh
Copy link

smemsh commented Sep 10, 2024

for that matter, if the boxes used utf-8 linedraw chars, they would be a lot easier on the eyes... maybe also helpful if the outside borders were optional.

@stgraber
Copy link
Member

We're basically just consuming https://github.com/olekukonko/tablewriter

@mjf
Copy link

mjf commented Sep 19, 2024

@stgraber I would also love to see output example 10 as default for tables or a global configuration option (the easiest to implement, I guess). To setup all the aliases (which I did) is truly suboptimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature, not a bug Maybe Undecided whether in scope for the project
Development

No branches or pull requests

4 participants