Skip to content

Commit ef6463b

Browse files
author
Massimiliano Pippi
authored
[skip changelog] fixed command docs (#475)
1 parent dfba10a commit ef6463b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Diff for: cli/config/init.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ import (
3030
func initInitCommand() *cobra.Command {
3131
initCommand := &cobra.Command{
3232
Use: "init",
33-
Short: "Initializes a new config file into the default location.",
34-
Long: "Initializes a new config file into the default location ($EXE_DIR/cli-config.yml).",
33+
Short: "Initializes a new configuration file into the default location.",
34+
Long: "Initializes a new configuration file into the default location ($EXE_DIR/cli-config.yml).",
3535
Example: "" +
36-
" # Creates a config file by asking questions to the user into the default location.\n" +
37-
" " + os.Args[0] + " config init\n\n" +
38-
" # Creates a config file with default configuration into default location.\n" +
39-
" " + os.Args[0] + " config init --default\n",
36+
" # Creates a default configuration file into the default location.\n" +
37+
" " + os.Args[0] + " config init",
4038
Args: cobra.NoArgs,
4139
Run: runInitCommand,
4240
}
@@ -46,7 +44,6 @@ func initInitCommand() *cobra.Command {
4644
}
4745

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

0 commit comments

Comments
 (0)