Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlank ¶
func NewBlank() *blankContext
NewBlank initializes a blank Context suitable for testing
func ParseDefaultConfig ¶
func ParseDefaultConfig() (*configEntry, error)
ParseDefaultConfig reads the configuration file
Types ¶
type Context ¶
type Context interface { AuthToken() (string, error) SetAuthToken(string) AuthLogin() (string, error) Branch() (string, error) SetBranch(string) Remotes() (Remotes, error) BaseRepo() (GitHubRepository, error) SetBaseRepo(string) }
Context represents the interface for querying information about the current environment
type GitHubRepository ¶
GitHubRepository is anything that can be mapped to an OWNER/REPO pair
func RepoFromURL ¶
func RepoFromURL(u *url.URL) (GitHubRepository, error)
RepoFromURL maps a URL to a GitHubRepository
type Remote ¶
Remote represents a git remote mapped to a GitHub repository
type Remotes ¶
type Remotes []*Remote
Remotes represents a set of git remotes
func (Remotes) FindByName ¶
FindByName returns the first Remote whose name matches the list
Click to show internal directories.
Click to hide internal directories.