Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix config init command docs #475

Merged
merged 1 commit into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ require (
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45
golang.org/x/net v0.0.0-20190311183353-d8887717615a
golang.org/x/text v0.3.0
google.golang.org/appengine v1.4.0 // indirect
google.golang.org/genproto v0.0.0-20190327125643-d831d65fe17d // indirect
google.golang.org/grpc v1.21.1
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
Expand Down