Skip to content

Commit

Permalink
[skip changelog] fixed command docs (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Massimiliano Pippi committed Nov 13, 2019
1 parent dfba10a commit ef6463b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cli/config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ import (
func initInitCommand() *cobra.Command {
initCommand := &cobra.Command{
Use: "init",
Short: "Initializes a new config file into the default location.",
Long: "Initializes a new config file into the default location ($EXE_DIR/cli-config.yml).",
Short: "Initializes a new configuration file into the default location.",
Long: "Initializes a new configuration file into the default location ($EXE_DIR/cli-config.yml).",
Example: "" +
" # Creates a config file by asking questions to the user into the default location.\n" +
" " + os.Args[0] + " config init\n\n" +
" # Creates a config file with default configuration into default location.\n" +
" " + os.Args[0] + " config init --default\n",
" # Creates a default configuration file into the default location.\n" +
" " + os.Args[0] + " config init",
Args: cobra.NoArgs,
Run: runInitCommand,
}
Expand All @@ -46,7 +44,6 @@ func initInitCommand() *cobra.Command {
}

var initFlags struct {
_default bool // If false, ask questions to the user about setting configuration properties, otherwise use default configuration.
location string // The custom location of the file to create.
}

Expand Down

0 comments on commit ef6463b

Please sign in to comment.