cmd/init,new: added short description

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-26 16:25:42 +02:00
parent 78fcb503c9
commit 9d1609187e
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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:

View File

@ -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