go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Additional flags for delete command

Open dlevy-msft opened this issue 2 years ago • 2 comments

Sometimes in a script you want to clean up an environment before running.

sqlcmd delete --remove-all would be helpful for bat scripts.

sqlcmd delete --context-only would be useful for environments where containers are created frequently and maintaining the context could be a security risk or just not useful due to subsequent scripts.

dlevy-msft avatar Dec 11 '23 15:12 dlevy-msft

Also -q or something like it to delete but not suggest something is wrong (by outputting "no context found") if there is no context, for example.

JerryNixon avatar Dec 11 '23 17:12 JerryNixon

I support it. One way to do this is to use the Viper In addition, Viper allows you continue using the env variable, which I consider a great help.

AxzelBC avatar Jan 03 '24 20:01 AxzelBC