Skip to content
Myr

Fix typo: initalize → initialize, etc.

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

Detected by Debian’s Lintian tool

authored by Anthony Fok · committed by Anthony Fok · parent 7366561 · Browse files · 1 file+4 added−4 removed
This commit

State

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

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:cobra/cmd/init.go+4 added-4 removed
27 unmodified lines
2829// initialize Command30var initCmd = &cobra.Command{31 Use: "init [name]",32 Aliases: []string{"initialize", "initalise", "create"},33 Short: "Initalize a Cobra Application",32 Aliases: []string{"initialize", "initialise", "create"},33 Short: "Initialize a Cobra Application",34 Long: `Initialize (cobra init) will create a new application, with a license35and the appropriate structure for a Cobra-based CLI application.3637 * If a name is provided, it will be created in the current directory;
16 unmodified lines
54 default:55 er("init doesn't support more than 1 parameter")56 }57 guessProjectPath()58 initalizePath(projectPath)58 initializePath(projectPath)59 },60}6162func initalizePath(path string) {62func initializePath(path string) {63 b, err := exists(path)64 if err != nil {65 er(err)66 }
160 unmodified lines