Documentation
¶
Index ¶
- Constants
- Variables
- func AliasExists(repoList []RepoCtx, targetAlias string) bool
- func GetRepoCfgPath() (string, error)
- func GetRepoUrl(repoAlias string) (string, error)
- func ReadDefaultConfig() (*os.File, error)
- func StoreRepoCfg(writer io.Writer, data []byte) error
- func TruncateFile(file *os.File) error
- type RepoCtx
- type RepoCtxCfg
Constants ¶
View Source
const (
RepoDefaultCtx = "default"
)
Variables ¶
Functions ¶
func AliasExists ¶
func GetRepoCfgPath ¶ added in v0.10.0
func GetRepoUrl ¶
func ReadDefaultConfig ¶
func TruncateFile ¶
Types ¶
type RepoCtxCfg ¶
type RepoCtxCfg struct { Default RepoCtx `json:"default,omitempty"` Repos []RepoCtx `json:"repos,omitempty"` }
func LoadRepoCfg ¶
func LoadRepoCfg(reader io.Reader) (RepoCtxCfg, error)
Click to show internal directories.
Click to hide internal directories.