Skip to content
Myr

Fix typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 4a1a7b0 · Browse files · 2 files+4 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−5 removed

  • other:+4 added−5 removed

2 files+4 added−5 removed

modified:command.go+2 added-3 removed
676 unmodified lines
677 x()678 }679}680681// Execute Call execute to use the args (os.Args[1:] by default)681// Execute uses the args (os.Args[1:] by default)682// and run through the command tree finding appropriate matches683// for commands and then corresponding flags.684func (c *Command) Execute() error {685 _, err := c.ExecuteC()
56 unmodified lines
742 // all subcommands should respect it743 if !cmd.SilenceUsage && !c.SilenceUsage {744 c.Println(cmd.UsageString())745 }746 return cmd, err746 }748 return cmd, nil747 return cmd, err748}749750// InitDefaultHelpFlag adds default help flag to c.751// It is called automatically by executing the c or by calling help and usage.
538 unmodified lines
modified:README.md+2 added-2 removed
228 unmodified lines
229 create.go230 main.go231```232233at this point you can run `go run main.go` and it would run your app. `go run233At this point you can run `go run main.go` and it would run your app. `go run234main.go serve`, `go run main.go config`, `go run main.go config create` along235with `go run main.go help serve`, etc would all work.236237Obviously you haven't added your own code to these yet, the commands are ready238for you to give them their tasks. Have fun.238for you to give them their tasks. Have fun!239240### Configuring the cobra generator241242The cobra generator will be easier to use if you provide a simple configuration
693 unmodified lines