From c3ef89ad8aa5a7677d233136ba64d6d8790b4172 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 17 Dec 2015 11:18:55 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20typo:=20initalize=20=E2=86=92=20initializ?= =?UTF-8?q?e,=20etc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detected by Debian’s Lintian tool --- cobra/cmd/init.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cobra/cmd/init.go b/cobra/cmd/init.go index e3c0b45f..a619d3b2 100644 --- a/cobra/cmd/init.go +++ b/cobra/cmd/init.go @@ -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)