Skip to content

Commit

Permalink
cmd/init,new: added short description
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Alba <sam.alba@gmail.com>
  • Loading branch information
samalba committed May 26, 2021
1 parent 78fcb50 commit 9d16091
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cmd/dagger/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/dagger/cmd/input/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions cmd/dagger/cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d16091

Please sign in to comment.