cli icon indicating copy to clipboard operation
cli copied to clipboard

Add a verbose flag to prevent the CLI to display additional information

Open fharper opened this issue 2 years ago • 3 comments

When I use the command volume ls, even when I don't have dangling volumes, I always get the list, no matter the format, in addition to the Info: Volumes with status 'dangling' mean they are attached to a cluster that no longer exists. You can attach them to an instance, or delete them if they are no longer needed..

It's great when using the CLI, but it's the kind of information I do not want to display when using the CLI for some automation. It could be nice to have a --verbose flag with either different level of verbose or as a boolean, which would have true as default, and setting it to false wouldn't show that kind of information output for any commands (not sure which others commands display that additional information in addition to the normal command output).

Not critical, just a “nice to have" option.

fharper avatar Sep 07 '23 21:09 fharper

Hi @fharper,

Where should I head to know more about this issue and how do I reproduce it ?

Sheikh-Abubaker avatar Sep 23 '23 18:09 Sheikh-Abubaker

@Sheikh-Abubaker: use the volume ls command. I get this warning every time even if all my volumes have an attached status.

fharper avatar Sep 25 '23 14:09 fharper

It can also be only omitted when using the --output flag since it's probably only while using a specific output for data manipulation that this additional information verbose is causing issue. I had to add an additional check before processing the data, not critical, but this option would be nice. I think it would even be better that way.

Let me know if there is a preferred way, I can submit a PR to help.

fharper avatar Nov 01 '23 15:11 fharper