From 39a60a3d139c75a3303193e392891ecd3ceafda9 Mon Sep 17 00:00:00 2001 From: tp Date: Sun, 9 Mar 2014 13:24:53 -0700 Subject: [PATCH] s/cmd/arg/ --- cmd_projects.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd_projects.go b/cmd_projects.go index 641d93a..54c238d 100644 --- a/cmd_projects.go +++ b/cmd_projects.go @@ -7,12 +7,12 @@ import ( "pk/api" ) -var cmdProjectCreateDropbox bool +var argProjectCreateDropbox bool var cmdProjectCreate = &cmd{ name: "create-project", run: func() error { kind := api.STATIC_PROJECT - if cmdProjectCreateDropbox { + if argProjectCreateDropbox { kind = api.DROPBOX_PROJECT } @@ -20,7 +20,7 @@ var cmdProjectCreate = &cmd{ if err != nil { return err } - fmt.Printf("Created new project %s.\n", resp.Name) + fmt.Printf("Created new project %s.\n", white(resp.Name)) fmt.Println("Run the following in your project repo to get started:") fmt.Println() fmt.Printf(" git remote add pk git@build.pancake.io:%s.git\n", resp.Name) @@ -38,7 +38,7 @@ var cmdProjectCreate = &cmd{ } func init() { - cmdProjectCreate.flags.BoolVar(&cmdProjectCreateDropbox, "dropbox", false, "creates a classic dropbox git-based Pancake.io project") + cmdProjectCreate.flags.BoolVar(&argProjectCreateDropbox, "dropbox", false, "creates a classic dropbox git-based Pancake.io project") } var cmdProjectsList = &cmd{