config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBPath

func DBPath() string

DBPath returns the SQLite database path.

func DataDir

func DataDir() string

DataDir returns the data directory (~/.local/share/oku).

func EnsureConfigDir

func EnsureConfigDir() error

EnsureConfigDir creates the config directory if it doesn't exist.

func EnsureDataDir

func EnsureDataDir() error

EnsureDataDir creates the data directory if it doesn't exist.

func FilePath

func FilePath() string

FilePath returns the config file path (~/.config/oku/config.toml).

Types

type Config

type Config struct {
	Editor      string `toml:"editor"`
	UseFzf      bool   `toml:"use_fzf"`
	DefaultList string `toml:"default_list"`
}

Config holds the application configuration.

func Defaults

func Defaults() Config

Defaults returns a Config with sensible defaults.

func Load

func Load() (Config, error)

Load reads config from the TOML file, falling back to defaults.

Jump to

Keyboard shortcuts

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