Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Profile string `yaml:"profile"`
RepoMappings map[string]string `yaml:"repoMappings"`
}
Config holds application configuration loaded from file.
func Load ¶
Load searches for a configuration file and returns the parsed Config. Search order:
- explicit path (if non-empty)
- .ccpr.yaml in current directory
- ~/.config/ccpr/config.yaml
func (*Config) ResolveProfile ¶
ResolveProfile returns the AWS profile to use. Priority: flagProfile > config file > AWS_PROFILE env > "default".
Click to show internal directories.
Click to hide internal directories.