config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VaultDir  string
	ConfigDir string
}

func Load

func Load() (*Config, error)

func (*Config) EnsureVaultDir

func (c *Config) EnsureVaultDir() error

func (*Config) GetAliasPath added in v0.3.0

func (c *Config) GetAliasPath() string

GetAliasPath returns the path to the aliases file. If WITH_ALIAS_FILE is set, it takes precedence — primarily a testability hook, but also lets users relocate the file explicitly.

func (*Config) GetVaultPath

func (c *Config) GetVaultPath(username string) string

Jump to

Keyboard shortcuts

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