Documentation
¶
Index ¶
Constants ¶
View Source
const (
APIGithubCom = "api.github.com"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
func ConfigFile() string
Types ¶
type Config ¶
type Config interface { GetToken(hostname string) string GetUser(hostname string) string HasHosts() bool GetHosts() []string }
Config interface describes interacting with some persistent configuration for gh.
func NewDefaultConfig ¶
func ParseDefaultConfig ¶
type FakeConfig ¶
type FakeConfig struct {
Hosts map[string]*HostConfig
}
func (*FakeConfig) GetHosts ¶
func (f *FakeConfig) GetHosts() []string
func (*FakeConfig) GetToken ¶
func (f *FakeConfig) GetToken(hostname string) string
func (*FakeConfig) GetUser ¶
func (f *FakeConfig) GetUser(hostname string) string
func (*FakeConfig) HasHosts ¶
func (f *FakeConfig) HasHosts() bool
type HostConfig ¶
HostConfig a struct containing the host level information.
Click to show internal directories.
Click to hide internal directories.