Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepos ¶
func CloneRepos(repos []*github.Repository, cloneDir string)
CloneRepos clones the given repositories
func CloneReposFromCache ¶
func CloneReposFromCache(repos []*cache.CachedRepo, cloneDir string)
CloneReposFromCache clones repositories from cached results
func ConfigExists ¶ added in v0.0.2
func ConfigExists() bool
ConfigExists returns true if a config file exists
func SaveConfig ¶ added in v0.0.2
SaveConfig writes the config to the preferred config file location. Creates the config directory if it doesn't exist.
Types ¶
type Config ¶
type Config struct {
DefaultOrg string `json:"default_org"`
DefaultTeam string `json:"default_team"`
}
Config holds the application configuration
func LoadConfig ¶
LoadConfig reads the config file following XDG Base Directory Specification. It checks in order:
- $XDG_CONFIG_HOME/town/config.json
- ~/.town/config.json (fallback)
Returns an empty Config (not an error) if no config file exists.
Click to show internal directories.
Click to hide internal directories.