config

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGlobalConfigPath

func DefaultGlobalConfigPath() (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL