Skip to content

Commit

Permalink
s/cmd/arg/
Browse files Browse the repository at this point in the history
  • Loading branch information
octavore committed Mar 9, 2014
1 parent afa625d commit 39a60a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ 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
}

resp, err := client.CreateProject(kind)
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 [email protected]:%s.git\n", resp.Name)
Expand All @@ -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{
Expand Down

0 comments on commit 39a60a3

Please sign in to comment.