config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

Types

type Config

type Config struct {
	Default   string                 `yaml:"default"`
	Cortexes  map[string]CortexEntry `yaml:"cortexes"`
	TrashDays int                    `yaml:"trash_days,omitempty"` // 0 means use default (30)
}

func Load

func Load() (*Config, error)

func (*Config) Save

func (c *Config) Save() error

type CortexEntry

type CortexEntry struct {
	Path string `yaml:"path"`
	ID   string `yaml:"id,omitempty"` // ULID, used to disambiguate same-named cortexes
}

Jump to

Keyboard shortcuts

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