Documentation
¶
Index ¶
- Variables
- type Config
- func (config *Config) Add(r *Remote) error
- func (config *Config) AddOrUpdate(r *Remote) error
- func (config *Config) Content() (string, error)
- func (config *Config) Delete(r *Remote) error
- func (config *Config) List() (Remotes, error)
- func (config *Config) Update(r *Remote) error
- func (config *Config) Write(content string) error
- type ConfigFileError
- type Remote
- type Remotes
Constants ¶
This section is empty.
Variables ¶
View Source
var AlreadyExistErr = errors.New("remote already exists")
Functions ¶
This section is empty.
Types ¶
type ConfigFileError ¶
type ConfigFileError struct {
Err error
}
func (*ConfigFileError) Error ¶
func (err *ConfigFileError) Error() string
type Remote ¶
func (*Remote) Repository ¶
type Remotes ¶
type Remotes []*Remote
func ListFromConfigContent ¶
func (Remotes) FilterByHost ¶
func (Remotes) FilterByName ¶
func (Remotes) FilterByNamePrefix ¶
Click to show internal directories.
Click to hide internal directories.