Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectConfigPath ¶
func ProjectConfigPath() string
ProjectConfigPath walks up from the current directory looking for a .forge file. Returns empty string if none is found.
func SetDomain ¶
SetDomain updates or adds a domain section in the user config file. Creates the config directory if needed. Sets file permissions to 0600 since the file may contain tokens.
func UserConfigPath ¶
func UserConfigPath() string
UserConfigPath returns the path to the user-level config file. It respects XDG_CONFIG_HOME, falling back to ~/.config/forge/config.
Types ¶
type Config ¶
type Config struct {
Default DefaultSection
Domains map[string]DomainSection
}
type DefaultSection ¶
type DomainSection ¶
Click to show internal directories.
Click to hide internal directories.