Documentation
¶
Index ¶
Constants ¶
View Source
const ( Filename = ".cligen.yaml" Dir = "~/.config" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
Types ¶
type Config ¶
type Config struct {
HomebrewConfig HomebrewConfig `yaml:"homebrew"`
}
Config represents the configuration of cligen.
func LoadConfig ¶
LoadConfig loads the config file from the default location and returns a Config instance. If the config file doesn't exist, it returns a Config instance with default values. If the config file exists but cannot be read, it returns an error. If the config file exists but cannot be parsed, it returns an error.
func NewConfig ¶
func NewConfig() *Config
NewConfig creates a new Config instance with default values
func (*Config) SaveConfig ¶
type HomebrewConfig ¶
type HomebrewConfig struct {
Enabled bool `yaml:"enabled"`
Repo string `yaml:"repo"`
GithubUsername string `yaml:"github_username"`
}
HomebrewConfig represents the configuration of the Homebrew tap.
Click to show internal directories.
Click to hide internal directories.