platformsh / cli

The unified tool for managing your Platform.sh services from the command line.
https://docs.platform.sh/administration/cli.html
MIT License
20 stars 6 forks source link

Running commands with verbose flags prevent the command to run #135

Closed lolautruche closed 11 months ago

lolautruche commented 1 year ago

It seems to happen only for commands implemented in Go, not for the ones forwarded to the legacy CLI.

platform list -v: Outputs nothing platform list: Outputs the commands list correctly

platform validate -v: Outputs nothing platform validate: Actually runs validation and outputs the result

(Same for the upsun CLI)

The same happens with -y or --no-interaction

lolautruche commented 1 year ago

I guess it's because the verbose flags are not persistent: https://github.com/platformsh/cli/blob/main/commands/root.go#L114