Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CurrentUser string `yaml:"current_user"`
DefaultVault string `yaml:"default_vault"`
Vaults map[string]Vault `yaml:"vaults"`
}
Config represents the vault-cli configuration.
type Loader ¶
type Loader interface {
Load(ctx context.Context) (*Config, error)
GetVaultPath(ctx context.Context, vaultName string) (string, error)
GetVault(ctx context.Context, vaultName string) (*Vault, error)
GetAllVaults(ctx context.Context) ([]*Vault, error)
GetCurrentUser(ctx context.Context) (string, error)
}
type Vault ¶
type Vault struct {
Path string `yaml:"path"`
Name string `yaml:"name"`
TasksDir string `yaml:"tasks_dir,omitempty"`
GoalsDir string `yaml:"goals_dir,omitempty"`
ThemesDir string `yaml:"themes_dir,omitempty"`
ObjectivesDir string `yaml:"objectives_dir,omitempty"`
VisionDir string `yaml:"vision_dir,omitempty"`
DailyDir string `yaml:"daily_dir,omitempty"`
}
Vault represents a single vault configuration.
func (*Vault) GetDailyDir ¶
GetDailyDir returns the daily notes directory, defaulting to "Daily Notes" if not set.
func (*Vault) GetGoalsDir ¶
GetGoalsDir returns the goals directory, defaulting to "Goals" if not set.
func (*Vault) GetObjectivesDir ¶
GetObjectivesDir returns the objectives directory, defaulting to "22 Objectives" if not set.
func (*Vault) GetTasksDir ¶
GetTasksDir returns the tasks directory, defaulting to "Tasks" if not set.
func (*Vault) GetThemesDir ¶
GetThemesDir returns the themes directory, defaulting to "21 Themes" if not set.
func (*Vault) GetVisionDir ¶
GetVisionDir returns the vision directory, defaulting to "20 Vision" if not set.
Click to show internal directories.
Click to hide internal directories.