Skip to main content

Module config

Module config 

Source
Expand description

Config loading and initialization for the CLI process boundary.

Enums§

RefreshLockPolicy
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 SQLite index path.
default_db_path_for_workspace
Default SQLite index 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, or None when config is absent (e.g. when running without a config file).