config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path string) (string, error)

AbsolutePath expands a leading ~/ and resolves relative paths.

func ResolveRoot

func ResolveRoot(flag string) (string, error)

ResolveRoot selects flag > MDKB_ROOT > user config > ~/kb. Lower-priority configuration is not read when a root is already selected.

Types

type SemanticSettings

type SemanticSettings struct {
	Enabled        bool   `toml:"enabled"`
	URL            string `toml:"url"`
	Model          string `toml:"model"`
	TimeoutSeconds int    `toml:"timeout_seconds"`
}

func Semantic

func Semantic() (SemanticSettings, error)

type WriteSettings

type WriteSettings struct {
	CommitOnWrite bool   `toml:"commit_on_write"`
	DailyDir      string `toml:"daily_dir"`
}

func Writes

func Writes() (WriteSettings, error)

Jump to

Keyboard shortcuts

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