mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
Merge pull request #1041 from gtardif/compose_help
Adding short description to improve help on compose subcommands
This commit is contained in:
commit
bb7b47be39
@ -34,6 +34,7 @@ func buildCommand() *cobra.Command {
|
||||
opts := buildOptions{}
|
||||
buildCmd := &cobra.Command{
|
||||
Use: "build [SERVICE...]",
|
||||
Short: "Build or rebuild services",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runBuild(cmd.Context(), opts, args)
|
||||
},
|
||||
|
@ -29,6 +29,7 @@ func downCommand() *cobra.Command {
|
||||
opts := composeOptions{}
|
||||
downCmd := &cobra.Command{
|
||||
Use: "down",
|
||||
Short: "Stop and remove containers, networks",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runDown(cmd.Context(), opts)
|
||||
},
|
||||
|
@ -34,6 +34,7 @@ func listCommand() *cobra.Command {
|
||||
opts := composeOptions{}
|
||||
lsCmd := &cobra.Command{
|
||||
Use: "ls",
|
||||
Short: "List running compose projects",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runList(cmd.Context(), opts)
|
||||
},
|
||||
|
@ -30,6 +30,7 @@ func logsCommand() *cobra.Command {
|
||||
opts := composeOptions{}
|
||||
logsCmd := &cobra.Command{
|
||||
Use: "logs",
|
||||
Short: "View output from containers",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runLogs(cmd.Context(), opts)
|
||||
},
|
||||
|
@ -34,6 +34,7 @@ func psCommand() *cobra.Command {
|
||||
opts := composeOptions{}
|
||||
psCmd := &cobra.Command{
|
||||
Use: "ps",
|
||||
Short: "List containers",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runPs(cmd.Context(), opts)
|
||||
},
|
||||
|
@ -34,6 +34,7 @@ func pullCommand() *cobra.Command {
|
||||
opts := pullOptions{}
|
||||
pullCmd := &cobra.Command{
|
||||
Use: "pull [SERVICE...]",
|
||||
Short: "Pull service images",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runPull(cmd.Context(), opts, args)
|
||||
},
|
||||
|
@ -34,6 +34,7 @@ func pushCommand() *cobra.Command {
|
||||
opts := pushOptions{}
|
||||
pushCmd := &cobra.Command{
|
||||
Use: "push [SERVICE...]",
|
||||
Short: "Push service images",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runPush(cmd.Context(), opts, args)
|
||||
},
|
||||
|
@ -37,6 +37,7 @@ func upCommand(contextType string) *cobra.Command {
|
||||
opts := composeOptions{}
|
||||
upCmd := &cobra.Command{
|
||||
Use: "up [SERVICE...]",
|
||||
Short: "Create and start containers",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
switch contextType {
|
||||
case store.LocalContextType, store.DefaultContextType:
|
||||
|
Loading…
x
Reference in New Issue
Block a user