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
Bug Description
The airshipctl config get-context command currently doesn't limit on the number of arguments that can be passed. So when we pass more that one parameter(example as show below) it returns all the contexts.
For the above config file if we issue airshipctl config get-context ephemeral-cluster target-cluster it returns all the contexts. I think it would be better if we accept only one argument/parameter.
Bug Description
The
airshipctl config get-context
command currently doesn't limit on the number of arguments that can be passed. So when we pass more that one parameter(example as show below) it returns all the contexts.airshipctl config get-context ephemeral-cluster target-cluster
Steps To Reproduce
Sample airship config file
For the above config file if we issue
airshipctl config get-context ephemeral-cluster target-cluster
it returns all the contexts. I think it would be better if we accept only one argument/parameter.Expected behavior
Current output
Expected output:
Simple fix would be to add
Args: cobra.MaximumNArgs(1),
in the cobra commandEnvironment
The text was updated successfully, but these errors were encountered: