|
@@ -101,29 +101,29 @@ func upCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) *c
|
|
|
}
|
|
|
flags := upCmd.Flags()
|
|
|
flags.BoolVarP(&up.Detach, "detach", "d", false, "Detached mode: Run containers in the background")
|
|
|
- flags.BoolVar(&create.Build, "build", false, "Build images before starting containers.")
|
|
|
- flags.BoolVar(&create.noBuild, "no-build", false, "Don't build an image, even if it's policy.")
|
|
|
+ flags.BoolVar(&create.Build, "build", false, "Build images before starting containers")
|
|
|
+ flags.BoolVar(&create.noBuild, "no-build", false, "Don't build an image, even if it's policy")
|
|
|
flags.StringVar(&create.Pull, "pull", "policy", `Pull image before running ("always"|"missing"|"never")`)
|
|
|
- flags.BoolVar(&create.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.")
|
|
|
+ flags.BoolVar(&create.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file")
|
|
|
flags.StringArrayVar(&create.scale, "scale", []string{}, "Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.")
|
|
|
- flags.BoolVar(&up.noColor, "no-color", false, "Produce monochrome output.")
|
|
|
- flags.BoolVar(&up.noPrefix, "no-log-prefix", false, "Don't print prefix in logs.")
|
|
|
- flags.BoolVar(&create.forceRecreate, "force-recreate", false, "Recreate containers even if their configuration and image haven't changed.")
|
|
|
+ flags.BoolVar(&up.noColor, "no-color", false, "Produce monochrome output")
|
|
|
+ flags.BoolVar(&up.noPrefix, "no-log-prefix", false, "Don't print prefix in logs")
|
|
|
+ flags.BoolVar(&create.forceRecreate, "force-recreate", false, "Recreate containers even if their configuration and image haven't changed")
|
|
|
flags.BoolVar(&create.noRecreate, "no-recreate", false, "If containers already exist, don't recreate them. Incompatible with --force-recreate.")
|
|
|
- flags.BoolVar(&up.noStart, "no-start", false, "Don't start the services after creating them.")
|
|
|
+ flags.BoolVar(&up.noStart, "no-start", false, "Don't start the services after creating them")
|
|
|
flags.BoolVar(&up.cascadeStop, "abort-on-container-exit", false, "Stops all containers if any container was stopped. Incompatible with -d")
|
|
|
flags.StringVar(&up.exitCodeFrom, "exit-code-from", "", "Return the exit code of the selected service container. Implies --abort-on-container-exit")
|
|
|
- flags.IntVarP(&create.timeout, "timeout", "t", 0, "Use this timeout in seconds for container shutdown when attached or when containers are already running.")
|
|
|
- flags.BoolVar(&up.timestamp, "timestamps", false, "Show timestamps.")
|
|
|
- flags.BoolVar(&up.noDeps, "no-deps", false, "Don't start linked services.")
|
|
|
+ flags.IntVarP(&create.timeout, "timeout", "t", 0, "Use this timeout in seconds for container shutdown when attached or when containers are already running")
|
|
|
+ flags.BoolVar(&up.timestamp, "timestamps", false, "Show timestamps")
|
|
|
+ flags.BoolVar(&up.noDeps, "no-deps", false, "Don't start linked services")
|
|
|
flags.BoolVar(&create.recreateDeps, "always-recreate-deps", false, "Recreate dependent containers. Incompatible with --no-recreate.")
|
|
|
- flags.BoolVarP(&create.noInherit, "renew-anon-volumes", "V", false, "Recreate anonymous volumes instead of retrieving data from the previous containers.")
|
|
|
- flags.BoolVar(&create.quietPull, "quiet-pull", false, "Pull without printing progress information.")
|
|
|
+ flags.BoolVarP(&create.noInherit, "renew-anon-volumes", "V", false, "Recreate anonymous volumes instead of retrieving data from the previous containers")
|
|
|
+ flags.BoolVar(&create.quietPull, "quiet-pull", false, "Pull without printing progress information")
|
|
|
flags.StringArrayVar(&up.attach, "attach", []string{}, "Restrict attaching to the specified services. Incompatible with --attach-dependencies.")
|
|
|
- flags.StringArrayVar(&up.noAttach, "no-attach", []string{}, "Do not attach (stream logs) to the specified services.")
|
|
|
- flags.BoolVar(&up.attachDependencies, "attach-dependencies", false, "Automatically attach to log output of dependent services.")
|
|
|
+ flags.StringArrayVar(&up.noAttach, "no-attach", []string{}, "Do not attach (stream logs) to the specified services")
|
|
|
+ flags.BoolVar(&up.attachDependencies, "attach-dependencies", false, "Automatically attach to log output of dependent services")
|
|
|
flags.BoolVar(&up.wait, "wait", false, "Wait for services to be running|healthy. Implies detached mode.")
|
|
|
- flags.IntVar(&up.waitTimeout, "wait-timeout", 0, "Maximum duration to wait for the project to be running|healthy.")
|
|
|
+ flags.IntVar(&up.waitTimeout, "wait-timeout", 0, "Maximum duration to wait for the project to be running|healthy")
|
|
|
|
|
|
return upCmd
|
|
|
}
|