Documentation
¶
Overview ¶
Package config provides configuration management for the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrURLRequired is returned when URL is required but not provided. ErrURLRequired = errors.New("url is required") // ErrAuthRequired is returned when authentication is required. ErrAuthRequired = errors.New("authentication required: either email+password or PAT must be configured") // ErrConflictingAuth is returned when both email+password and PAT are configured. ErrConflictingAuth = errors.New("conflicting authentication: cannot use both email+password and PAT") )
Functions ¶
func DefaultConfigPath ¶
DefaultConfigPath returns the default config file path.
func EnsureDefaults ¶
EnsureDefaults creates a default configuration file if it doesn't exist.
Types ¶
type Auth ¶
type Auth struct {
Email string `koanf:"email"`
Password string `koanf:"password"`
PAT string `koanf:"pat"`
}
Auth represents authentication configuration.
Click to show internal directories.
Click to hide internal directories.