Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDirectory ¶
GetConfigDirectory gets the config directory path for the Pizza CLI. This function should be used to ensure consistency among commands for loading and modifying the config.
Types ¶
type Spec ¶
type Spec struct {
// Attributions are mappings of GitHub usernames to a list of emails. These
// emails should be the associated addresses used by individual GitHub users.
// Example: { github_username: [ email1@domain.com, email2@domain.com ]} where
// "github_username" has 2 emails attributed to them and their work.
Attributions map[string][]string `yaml:"attribution"`
// AttributionFallback is the default username/group(s) to attribute to the filename
// if no other attributions were found.
AttributionFallback []string `yaml:"attribution-fallback"`
}
The configuration specification
func LoadConfig ¶
LoadConfig loads a configuration file at a given path. It attempts to load the default location of a ".sauced.yaml" in the current working directory if an empty path is provided. If none is found, it tries to load "~/.sauced.yaml" from the fallback path, which is the user's home directory.
Click to show internal directories.
Click to hide internal directories.