microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)
https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility
MIT License
323 stars 56 forks source link

Additional flags for delete command #492

Open dlevy-msft opened 6 months ago

dlevy-msft commented 6 months ago

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.

JerryNixon commented 6 months ago

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.

AxzelBC commented 6 months ago

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.