From 9d1609187e64561780f8c4b79f384c94b1dcb2da Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 26 May 2021 16:25:42 +0200 Subject: [PATCH] cmd/init,new: added short description Signed-off-by: Sam Alba --- cmd/dagger/cmd/init.go | 5 +++-- cmd/dagger/cmd/input/list.go | 2 +- cmd/dagger/cmd/new.go | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/dagger/cmd/init.go b/cmd/dagger/cmd/init.go index 9d5d1872..36e3bde4 100644 --- a/cmd/dagger/cmd/init.go +++ b/cmd/dagger/cmd/init.go @@ -10,8 +10,9 @@ import ( ) var initCmd = &cobra.Command{ - Use: "init", - Args: cobra.MaximumNArgs(1), + Use: "init", + Short: "Initialize a new empty workspace", + Args: cobra.MaximumNArgs(1), PreRun: func(cmd *cobra.Command, args []string) { // Fix Viper bug for duplicate flags: // https://github.com/spf13/viper/issues/233 diff --git a/cmd/dagger/cmd/input/list.go b/cmd/dagger/cmd/input/list.go index 6dd65538..f0309cb9 100644 --- a/cmd/dagger/cmd/input/list.go +++ b/cmd/dagger/cmd/input/list.go @@ -20,7 +20,7 @@ import ( var listCmd = &cobra.Command{ Use: "list [TARGET] [flags]", - Short: "List for the inputs of an environment", + Short: "List the inputs of an environment", Args: cobra.MaximumNArgs(1), PreRun: func(cmd *cobra.Command, args []string) { // Fix Viper bug for duplicate flags: diff --git a/cmd/dagger/cmd/new.go b/cmd/dagger/cmd/new.go index 81979cfc..96371951 100644 --- a/cmd/dagger/cmd/new.go +++ b/cmd/dagger/cmd/new.go @@ -8,8 +8,9 @@ import ( ) var newCmd = &cobra.Command{ - Use: "new", - Args: cobra.ExactArgs(1), + Use: "new", + Short: "Create a new empty environment", + Args: cobra.ExactArgs(1), PreRun: func(cmd *cobra.Command, args []string) { // Fix Viper bug for duplicate flags: // https://github.com/spf13/viper/issues/233