mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Change --prune flag shorthand to -r
This commit is contained in:
parent
3d475143c1
commit
44319f3655
@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- `-e, --env-file` flag sets the environment variables file to use.
|
||||
- `--replace-env` flag causes environment variables to be replaced instead of merged while updating a stack.
|
||||
- `--endpoint` flag sets the endpoint to use.
|
||||
- `-p, --prune` flag causes services that are no longer referenced to be removed.
|
||||
- `-r, --prune` flag causes services that are no longer referenced to be removed.
|
||||
- `stack remove|rm|down` command to remove a stack.
|
||||
- `--strict` flag causes a failure if the stack does not exist.
|
||||
- `status` command to show Portainer status as a table.
|
||||
|
@ -110,7 +110,7 @@ func init() {
|
||||
stackDeployCmd.Flags().String("endpoint", "1", "endpoint ID")
|
||||
stackDeployCmd.Flags().StringP("env-file", "e", "", "path to a file with environment variables used during stack deployment")
|
||||
stackDeployCmd.Flags().Bool("replace-env", false, "replace environment variables instead of merging them")
|
||||
stackDeployCmd.Flags().BoolP("prune", "p", false, "prune services that are no longer referenced (only available for Swarm stacks)")
|
||||
stackDeployCmd.Flags().BoolP("prune", "r", false, "prune services that are no longer referenced (only available for Swarm stacks)")
|
||||
viper.BindPFlag("stack.deploy.stack-file", stackDeployCmd.Flags().Lookup("stack-file"))
|
||||
viper.BindPFlag("stack.deploy.endpoint", stackDeployCmd.Flags().Lookup("endpoint"))
|
||||
viper.BindPFlag("stack.deploy.env-file", stackDeployCmd.Flags().Lookup("env-file"))
|
||||
|
Loading…
Reference in New Issue
Block a user