You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
validate command prints usage when used like documented? #781
With 1.105.0 (and 1.106.0) we now get the commands usage printed instead/additionally:
atmos validate component "vpc/foo" --stack bar
Atmos supports native '' commands with all the options, arguments and flags.
In addition, 'component' and 'stack' are required in order to generate variables for the component in the stack.
atmos <subcommand> <component> -s <stack> [options]
atmos <subcommand> <component> --stack <stack> [options]
For more details, execute ' --help'
component 'vpc/foo' in stack 'bar' validated successfully
So it looks like some validation still took place and it was successfull.
Expected Behavior
Exit code 0 on successfull validation, some other number otherwise. No usage gets printed to the screen.
Steps to Reproduce
Run atmos validate component <component> --stack <stack> as documented via --help.
The changelog for v1.132.0 has the entry "Do not show help when executing atmos validate component <component> --stack <stack> command" so hopefully this is fixed in that version (not verified yet).
Activity
osterman commentedon Nov 14, 2024
This is a regression. We will get it fixed ASAP.
GabisCampana commentedon Nov 14, 2024
Andriy Knysh (@aknysh)
Cerebrovinny commentedon Nov 15, 2024
Andriy Knysh (@aknysh) not able to found the regression checking this https://raw.githubusercontent.com/cloudposse/atmos/b53d696375a6716b2fd0bc024fb1861b46c78bb5/internal/exec/validate_stacks.go
maybe you can point out the root cause for this? also silence usage from cobra can be a viable option on this case
aknysh commentedon Nov 15, 2024
Vinicius C. (@Cerebrovinny) i'll check it and let you know
osterman commentedon Dec 11, 2024
This was resolved as part of:
osterman commentedon Dec 11, 2024
These changes were released in v1.119.0.
mss commentedon Dec 12, 2024
Unfortunately that PR didn't fix this issue:
mss commentedon Jan 6, 2025
The changelog for v1.132.0 has the entry "Do not show help when executing
atmos validate component <component> --stack <stack>command" so hopefully this is fixed in that version (not verified yet).