Documentation ¶
Index ¶
- func Bool(key string) (bool, error)
- func Do(args ...string) (string, error)
- func Email() (string, error)
- func Get(args ...string) (string, error)
- func GetAll(args ...string) ([]string, error)
- func GitHubToken(host string) (string, error)
- func GitHubUser(host string) (string, error)
- func Int(key string) (int, error)
- func IsNotFound(err error) bool
- func Path(key string) (string, error)
- func PathAll(key string) ([]string, error)
- func User() (string, error)
- func WithConfig(tb testing.TB, configContent string) func()
- type Config
- func (c *Config) Bool(key string) (bool, error)
- func (c *Config) Do(args ...string) (string, error)
- func (c *Config) Email() (string, error)
- func (c *Config) Get(args ...string) (string, error)
- func (c *Config) GetAll(args ...string) ([]string, error)
- func (c *Config) GitHubToken(host string) (string, error)
- func (c *Config) GitHubUser(host string) (string, error)
- func (c *Config) Int(key string) (int, error)
- func (c *Config) Path(key string) (string, error)
- func (c *Config) PathAll(key string) ([]string, error)
- func (c *Config) User() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitHubToken ¶
GitHubToken takes API token for GitHub
func GitHubUser ¶
GitHubUser detects user name of GitHub from various informations
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is known to report that a value does not found.
func WithConfig ¶
WithConfig is test helper to replace gitconfig temporarily
Types ¶
type Config ¶
Config is for base setting for git config
func (*Config) GitHubToken ¶
GitHubToken takes API token for GitHub
func (*Config) GitHubUser ¶
GitHubUser detects user name of GitHub from various informations
Source Files ¶
Click to show internal directories.
Click to hide internal directories.