If a service already has existing arguments, the user should be required to indicate intent to replacing them.
E.g. assume a SQL Server service named database with defined docker launch args:
$ st add database mssql-server
$ st args docker database -- -e ACCEPT_EULA=y
Set the 'docker' deployment environment argument(s) for service 'database' to '-e ACCEPT_EULA=y'
The following should fail, but currently it simply overwrites existing args:
$ st args docker database -- -e ACCEPT_EULA=n
Set the 'docker' deployment environment argument(s) for service 'database' to '-e ACCEPT_EULA=n'
A better behavior would be something like:
$ st args docker database -- -e ACCEPT_EULA=n
'docker' deployment environment argument(s) for service 'database' already exist.
Run with '--force' to replace.
$ st args docker database --force -- -e ACCEPT_EULA=n
Set the 'docker' deployment environment argument(s) for service 'database' to '-e ACCEPT_EULA=n'
If a service already has existing arguments, the user should be required to indicate intent to replacing them.
E.g. assume a SQL Server service named
database
with defined docker launch args:The following should fail, but currently it simply overwrites existing args:
A better behavior would be something like: