diff --git a/cli/cmd/compose/build.go b/cli/cmd/compose/build.go index 1433650bf..6caf74748 100644 --- a/cli/cmd/compose/build.go +++ b/cli/cmd/compose/build.go @@ -33,7 +33,8 @@ type buildOptions struct { func buildCommand() *cobra.Command { opts := buildOptions{} buildCmd := &cobra.Command{ - Use: "build [SERVICE...]", + Use: "build [SERVICE...]", + Short: "Build or rebuild services", RunE: func(cmd *cobra.Command, args []string) error { return runBuild(cmd.Context(), opts, args) }, diff --git a/cli/cmd/compose/down.go b/cli/cmd/compose/down.go index bca2fc105..3b05c038b 100644 --- a/cli/cmd/compose/down.go +++ b/cli/cmd/compose/down.go @@ -28,7 +28,8 @@ import ( func downCommand() *cobra.Command { opts := composeOptions{} downCmd := &cobra.Command{ - Use: "down", + Use: "down", + Short: "Stop and remove containers, networks", RunE: func(cmd *cobra.Command, args []string) error { return runDown(cmd.Context(), opts) }, diff --git a/cli/cmd/compose/list.go b/cli/cmd/compose/list.go index 01730b413..cb1c59ba7 100644 --- a/cli/cmd/compose/list.go +++ b/cli/cmd/compose/list.go @@ -33,7 +33,8 @@ import ( func listCommand() *cobra.Command { opts := composeOptions{} lsCmd := &cobra.Command{ - Use: "ls", + Use: "ls", + Short: "List running compose projects", RunE: func(cmd *cobra.Command, args []string) error { return runList(cmd.Context(), opts) }, diff --git a/cli/cmd/compose/logs.go b/cli/cmd/compose/logs.go index 04ce13d90..127642994 100644 --- a/cli/cmd/compose/logs.go +++ b/cli/cmd/compose/logs.go @@ -29,7 +29,8 @@ import ( func logsCommand() *cobra.Command { opts := composeOptions{} logsCmd := &cobra.Command{ - Use: "logs", + Use: "logs", + Short: "View output from containers", RunE: func(cmd *cobra.Command, args []string) error { return runLogs(cmd.Context(), opts) }, diff --git a/cli/cmd/compose/ps.go b/cli/cmd/compose/ps.go index b7b5ffed7..63d7b512a 100644 --- a/cli/cmd/compose/ps.go +++ b/cli/cmd/compose/ps.go @@ -33,7 +33,8 @@ import ( func psCommand() *cobra.Command { opts := composeOptions{} psCmd := &cobra.Command{ - Use: "ps", + Use: "ps", + Short: "List containers", RunE: func(cmd *cobra.Command, args []string) error { return runPs(cmd.Context(), opts) }, diff --git a/cli/cmd/compose/pull.go b/cli/cmd/compose/pull.go index 27b285267..03ce586aa 100644 --- a/cli/cmd/compose/pull.go +++ b/cli/cmd/compose/pull.go @@ -33,7 +33,8 @@ type pullOptions struct { func pullCommand() *cobra.Command { opts := pullOptions{} pullCmd := &cobra.Command{ - Use: "pull [SERVICE...]", + Use: "pull [SERVICE...]", + Short: "Pull service images", RunE: func(cmd *cobra.Command, args []string) error { return runPull(cmd.Context(), opts, args) }, diff --git a/cli/cmd/compose/push.go b/cli/cmd/compose/push.go index 9f19d3418..2c95ceea0 100644 --- a/cli/cmd/compose/push.go +++ b/cli/cmd/compose/push.go @@ -33,7 +33,8 @@ type pushOptions struct { func pushCommand() *cobra.Command { opts := pushOptions{} pushCmd := &cobra.Command{ - Use: "push [SERVICE...]", + Use: "push [SERVICE...]", + Short: "Push service images", RunE: func(cmd *cobra.Command, args []string) error { return runPush(cmd.Context(), opts, args) }, diff --git a/cli/cmd/compose/up.go b/cli/cmd/compose/up.go index 9f1e461b1..854825b0e 100644 --- a/cli/cmd/compose/up.go +++ b/cli/cmd/compose/up.go @@ -36,7 +36,8 @@ import ( func upCommand(contextType string) *cobra.Command { opts := composeOptions{} upCmd := &cobra.Command{ - Use: "up [SERVICE...]", + Use: "up [SERVICE...]", + Short: "Create and start containers", RunE: func(cmd *cobra.Command, args []string) error { switch contextType { case store.LocalContextType, store.DefaultContextType: