Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
As of today, if a command has several positional arguments, the CLI will separate them and run the command as many times as there are positional arguments, each time with one of the arguments. For example :
scw rdb acl add 1.2.3.4 1.1.1.1 instance-id=xxxxx-xxx-xxx-xxxxxx
is actually done in 2 steps :
(1) scw rdb acl add 1.2.3.4 instance-id=xxxxx-xxx-xxx-xxxxxx
(2) scw rdb acl add 1.1.1.1 instance-id=xxxxx-xxx-xxx-xxxxxx
This can be problematic for verbs such as set
because every run will overwrite the previous one.
How I imagine scw could expose this functionality
By modifying the code around here, we should be able to introduce specific behaviors for set
verbs, so that :
scw rdb acl set 1.2.3.4 1.1.1.1 instance-id=xxxxx-xxx-xxx-xxxxxx
sets all positional arguments in the same run.