github.com/naphatkrit/deis@v1.12.3/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  }