Documentation
¶
Overview ¶
Package config provides the frizbee configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextConfigKey = contextConfigKey{}
ContextConfigKey is the context key for the configuration. nolint:gochecknoglobals // this is a context key
View Source
var ( // ErrNoConfigInContext is returned when no configuration is found in the context. ErrNoConfigInContext = errors.New("no configuration found in context") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Platform string `yaml:"platform" mapstructure:"platform"`
GHActions GHActions `yaml:"ghactions" mapstructure:"ghactions"`
}
Config is the frizbee configuration.
func FromCommand ¶
FromCommand returns the configuration from the cobra command.
func ParseConfigFile ¶
ParseConfigFile parses a configuration file.
func ParseConfigFileFromFS ¶
func ParseConfigFileFromFS(fs billy.Filesystem, configfile string) (*Config, error)
ParseConfigFileFromFS parses a configuration file from a filesystem.
Click to show internal directories.
Click to hide internal directories.