github.com/rochacon/deis@v1.0.2-0.20150903015341-6839b592a1ff/client/cmd/git.go (about) 1 package cmd 2 3 import ( 4 "github.com/deis/deis/client/pkg/git" 5 ) 6 7 // GitRemote creates a git remote for a deis app. 8 func GitRemote(appID, remote string) error { 9 c, appID, err := load(appID) 10 11 if err != nil { 12 return err 13 } 14 15 return git.CreateRemote(c.ControllerURL.Host, remote, appID) 16 }