Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatRemoteURL ¶
TODO there is a parallel implementation for non-isolated commands
func GenerateRepoURL ¶
Types ¶
type Interface ¶
type Interface interface { RepoName() string RepoOwner() string RepoHost() string RepoURL() string }
Interface describes an object that represents a GitHub repository
func FromFullName ¶
FromFullName extracts the GitHub repository information from the following formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.
func FromFullNameWithHost ¶
FromFullNameWithHost is like FromFullName that defaults to a specific host for values that don't explicitly include a hostname.
func NewWithHost ¶
NewWithHost is like New with an explicit host name
type Respository ¶
type Respository struct {
// contains filtered or unexported fields
}
func NewRepoFromHost ¶
func NewRepoFromHost(u string, defaultHost string) (*Respository, error)
func (*Respository) Host ¶
func (r *Respository) Host() string
func (*Respository) Name ¶
func (r *Respository) Name() string
func (*Respository) Owner ¶
func (r *Respository) Owner() string
func (*Respository) URL ¶
func (r *Respository) URL() string
Click to show internal directories.
Click to hide internal directories.