forked from mirror/cobra
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
|
// initialize Command
|
||||||
var initCmd = &cobra.Command{
|
var initCmd = &cobra.Command{
|
||||||
Use: "init [name]",
|
Use: "init [name]",
|
||||||
Aliases: []string{"initialize", "initalise", "create"},
|
Aliases: []string{"initialize", "initialise", "create"},
|
||||||
Short: "Initalize a Cobra Application",
|
Short: "Initialize a Cobra Application",
|
||||||
Long: `Initialize (cobra init) will create a new application, with a license
|
Long: `Initialize (cobra init) will create a new application, with a license
|
||||||
and the appropriate structure for a Cobra-based CLI application.
|
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")
|
er("init doesn't support more than 1 parameter")
|
||||||
}
|
}
|
||||||
guessProjectPath()
|
guessProjectPath()
|
||||||
initalizePath(projectPath)
|
initializePath(projectPath)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func initalizePath(path string) {
|
func initializePath(path string) {
|
||||||
b, err := exists(path)
|
b, err := exists(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
er(err)
|
er(err)
|
||||||
|
|
Loading…
Reference in New Issue