Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGlobalConfigPath ¶
DefaultGlobalConfigPath returns the default path for the global config.
func WriteGlobalConfig ¶
func WriteGlobalConfig(path string, cfg *GlobalConfig) error
WriteGlobalConfig serializes cfg to path atomically.
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
VaultRoot string `json:"vault_root"`
}
GlobalConfig is stored at ~/.config/pickaxe/config.json.
func ReadGlobalConfig ¶
func ReadGlobalConfig(path string) (*GlobalConfig, error)
ReadGlobalConfig reads and parses the global config from path.
Click to show internal directories.
Click to hide internal directories.