mirror of
https://github.com/spf13/cobra.git
synced 2024-11-16 02:08:17 -07:00
Fix typo: initalize → initialize, etc.
Detected by Debian’s Lintian tool
This commit is contained in:
parent
73665614cb
commit
c3ef89ad8a
@ -29,8 +29,8 @@ func init() {
|
||||
// initialize Command
|
||||
var initCmd = &cobra.Command{
|
||||
Use: "init [name]",
|
||||
Aliases: []string{"initialize", "initalise", "create"},
|
||||
Short: "Initalize a Cobra Application",
|
||||
Aliases: []string{"initialize", "initialise", "create"},
|
||||
Short: "Initialize a Cobra Application",
|
||||
Long: `Initialize (cobra init) will create a new application, with a license
|
||||
and the appropriate structure for a Cobra-based CLI application.
|
||||
|
||||
@ -55,11 +55,11 @@ Init will not use an exiting directory with contents.`,
|
||||
er("init doesn't support more than 1 parameter")
|
||||
}
|
||||
guessProjectPath()
|
||||
initalizePath(projectPath)
|
||||
initializePath(projectPath)
|
||||
},
|
||||
}
|
||||
|
||||
func initalizePath(path string) {
|
||||
func initializePath(path string) {
|
||||
b, err := exists(path)
|
||||
if err != nil {
|
||||
er(err)
|
||||
|
Loading…
Reference in New Issue
Block a user