浏览代码

Add help to context commands

Signed-off-by: Christopher Crone <[email protected]>
Christopher Crone 5 年之前
父节点
当前提交
c92a9b12d9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cli/cmd/context.go

+ 3 - 1
cli/cmd/context.go

@@ -84,6 +84,7 @@ func createCommand() *cobra.Command {
 func listCommand() *cobra.Command {
 func listCommand() *cobra.Command {
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
 		Use:     "list",
 		Use:     "list",
+		Short:   "List available contexts",
 		Aliases: []string{"ls"},
 		Aliases: []string{"ls"},
 		Args:    cobra.NoArgs,
 		Args:    cobra.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
@@ -95,7 +96,8 @@ func listCommand() *cobra.Command {
 
 
 func removeCommand() *cobra.Command {
 func removeCommand() *cobra.Command {
 	return &cobra.Command{
 	return &cobra.Command{
-		Use:     "rm",
+		Use:     "rm CONTEXT [CONTEXT...]",
+		Short:   "Remove one or more contexts",
 		Aliases: []string{"remove"},
 		Aliases: []string{"remove"},
 		Args:    cobra.MinimumNArgs(1),
 		Args:    cobra.MinimumNArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {