summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-13 10:02:05 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-13 10:02:05 -0700
commit067e9814f077ca8ea2068ee4cf46449770d69d86 (patch)
tree1455faf943ff0ae5141239fb8e715b79d6380948 /cmd/ponzu/options.go
parentd4d938d634552eed167688409a90cfe698b35653 (diff)
adding delete button (test)
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index 19b61bb..bc96b42 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -214,6 +214,25 @@ func createProjInDir(path string) error {
return err
}
+ if dev {
+ devClone := exec.Command("git", "clone", local, "--branch", "ponzu-dev", "--single-branch", path)
+ devClone.Stdout = os.Stdout
+ devClone.Stderr = os.Stderr
+
+ err := devClone.Start()
+ if err != nil {
+ return err
+ }
+
+ err = devClone.Wait()
+ if err != nil {
+ return err
+ }
+
+ fmt.Println("Dev build cloned from bosssauce/ponzu:ponzu-dev")
+ return nil
+ }
+
// try to git clone the repository from the local machine's $GOPATH
localClone := exec.Command("git", "clone", local, path)
localClone.Stdout = os.Stdout