Open Slm0n87 opened 1 month ago
Hey @Slm0n87 thank you once again for your feedback!
In commands that make changes (create
, update
, delete
, etc), we have the common practice of asking the user for confirmation. This is also common behaviour in other CLI's and in programs in general.
However, if you don't want to be prompted for confirmation you can always provide the --assume-yes
flag, which will bypass the prompts and remove the user interaction from the command.
Kind regards, Diogo
Thx @DiogoFerrao, the --assume-yes
helped me in that case.
I agree that its common behaviour and best practices for CLI's before overwriting existing files.
But I am not aware of any CLI where I explicitly specify a file as argument and I get prompted to confirm that I really want to save it there.
Regards, Simon
That's a good point @Slm0n87, I think this is also one of the few commands that interact with files in the user's system and not STACKIT resources that come with costs.
We could consider having a check and only prompt the user for confirmation when actually overwriting a file. We will add this topic to the our backlog and keep you updated on its progress!
Doing:
The cli gives a warning to overwrite the config file if it exists and have a default: No. This is very nice, but absolut unnecessary if the file des not exist.
Expected behaviour: Just write the file and avoid unnecessary user interaction.