ionos-cloud / ionosctl

The IONOS Cloud CLI (ionosctl) gives the ability to manage IONOS Cloud infrastructure directly from Command Line.
Apache License 2.0
28 stars 6 forks source link

fix: --no-headers ignored #387

Closed avirtopeanu-ionos closed 11 months ago

avirtopeanu-ionos commented 11 months ago

Viper would fail retrieving the --no-headers value due to it:

  1. not having a root level flag,
  2. binding to the sub-command level --no-headers flags instead and using their values

Hence always headers would be shown no matter if the flag was set or not.

Note: Now --no-headers will work on all commands, regardless if they might have had --no-headers added manually or not

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication