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() (ghrepo.Interface, error)
SetBaseRepo(string)
}
Context represents the interface for querying information about the current environment
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
func (Remotes) FindByRepo ¶
FindByRepo returns the first Remote that points to a specific GitHub repository
Click to show internal directories.
Click to hide internal directories.