Documentation ¶
Index ¶
- Variables
- func CreateRemote(cmd Cmd, host, name, appID string) error
- func DefaultCmd(cmd []string) (string, error)
- func DeleteAppRemotes(cmd Cmd, host, appID string) error
- func DeleteRemote(cmd Cmd, name string) error
- func DetectAppName(cmd Cmd, host string) (string, error)
- func Init(cmd Cmd) error
- func RemoteURL(cmd Cmd, name string) (string, error)
- func RepositoryURL(host, appID string) string
- type Cmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRemoteNotFound is returned when the remote cannot be found in git ErrRemoteNotFound = errors.New("Could not find remote matching app in 'git remote -v'") // ErrInvalidRepositoryList is an error returned if git returns unparsible output ErrInvalidRepositoryList = errors.New("Invalid output in 'git remote -v'") )
Functions ¶
func CreateRemote ¶
CreateRemote adds a git remote in the current directory.
func DefaultCmd ¶
DefaultCmd is an implementation of Cmd that calls git.
func DeleteAppRemotes ¶
DeleteAppRemotes removes all git remotes corresponding to an app in the repository.
func DeleteRemote ¶
DeleteRemote removes a remote from the repository
func DetectAppName ¶
DetectAppName detects if there is deis remote in git.
func RepositoryURL ¶
RepositoryURL returns the git repository of an app.
Types ¶
Click to show internal directories.
Click to hide internal directories.