Skip to main content

Module helpers

Module helpers 

Source

Functionsยง

create_and_init_vault
Create and initialize a vault from workspace configuration.
load_and_resolve_workspace
Load settings and resolve workspace configuration in one operation.
load_settings
Load settings from either a specific config file path or the default location.
resolve_content
Returns content from the Option, or reads from stdin if not a TTY. Returns an empty string if content is None and stdin is a TTY. Propagates I/O errors from stdin.
resolve_note_path
Resolve a user-provided note path string into a VaultPath.
resolve_quick_note_path
Returns the configured quick_note_path for the active workspace. Falls back to VaultPath::root() for Phase 1 workspaces (no WorkspaceEntry) or if not configured.
resolve_workspace_config
Resolve workspace configuration from settings, returning the workspace path and name.