mirror of https://github.com/docker/compose.git
Add help to context commands
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
parent
9bf2924c24
commit
c92a9b12d9
|
@ -84,6 +84,7 @@ func createCommand() *cobra.Command {
|
|||
func listCommand() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "List available contexts",
|
||||
Aliases: []string{"ls"},
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
@ -95,7 +96,8 @@ func listCommand() *cobra.Command {
|
|||
|
||||
func removeCommand() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "rm",
|
||||
Use: "rm CONTEXT [CONTEXT...]",
|
||||
Short: "Remove one or more contexts",
|
||||
Aliases: []string{"remove"},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
Loading…
Reference in New Issue