Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeHelperConfig ¶
func (*FakeHelperConfig) ConfigureOurs ¶
func (hc *FakeHelperConfig) ConfigureOurs(hostname string) error
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
func (*FakeHelperConfig) ConfiguredHelper ¶
func (hc *FakeHelperConfig) ConfiguredHelper(hostname string) (Helper, error)
ConfiguredHelper returns the configured git credential helper for a given hostname.
type Helper ¶
type Helper struct {
Cmd string
}
A Helper represents a git credential helper configuration.
func (Helper) IsConfigured ¶
IsConfigured returns true if the helper has a non-empty command, i.e. the git config had an entry
type HelperConfig ¶
A HelperConfig is used to configure and inspect the state of git credential helpers.
func (*HelperConfig) ConfigureOurs ¶
func (hc *HelperConfig) ConfigureOurs(hostname string) error
ConfigureOurs sets up the git credential helper chain to use the GitHub CLI credential helper for git repositories including gists.
func (*HelperConfig) ConfiguredHelper ¶
func (hc *HelperConfig) ConfiguredHelper(hostname string) (Helper, error)
ConfiguredHelper returns the configured git credential helper for a given hostname.