Expand description
Config loading and initialization for the CLI process boundary.
Enums§
- Refresh
Lock Policy - Controls how auto-refresh handles an already-running sync.
Constants§
- CONFIG_
DIR_ NAME - Default config directory.
- CONFIG_
FILE_ NAME - Default config filename.
- CONFIG_
TEMPLATE - Config template written by
talon init.
Functions§
- default_
config_ for_ vault - Builds a default config from a vault path.
- default_
config_ path - Default config path:
~/.config/talon/config.toml. - default_
db_ path - Default
SQLiteindex path. - default_
db_ path_ for_ workspace - Default
SQLiteindex path for a workspace. - init_
config - Initializes the config file at the default path.
- load_
config - Loads config from the default path or an explicit path.
- load_
config_ file - Loads a config file from the given path.
- refresh_
index_ if_ needed - Auto-refresh the index against on-disk state before running a query.
- refresh_
index_ with_ lock - Auto-refreshes when the caller already owns the sync lock.
- sync_
lock_ path - Returns the advisory sync lock path for a configured database.
- vault_
container_ path - Converts the configured vault path to a
ContainerPath, orNonewhen config is absent (e.g. when running without a config file).