CLI

Command Line Interface

source

list_configured_pairs

 list_configured_pairs ()

Display all configured sync pairs


source

find_sync_pair_for_cwd

 find_sync_pair_for_cwd ()

Check if current working directory matches any configured obsidian or quarto paths. Returns (obsidian_path, quarto_path, author) if found, None otherwise.


source

validate_path

 validate_path (path_str:str, must_exist:bool=True, must_be_dir:bool=True)

Validate and return Path object


source

add

 add (obsidian_path:str=None, quarto_path:str=None, author:str=None,
      non_interactive:bool=False)

Add a new Obsidian to Quarto sync pair

Type Default Details
obsidian_path str None Absolute path to Obsidian folder
quarto_path str None Absolute path to Quarto folder
author str None Default author name for new files
non_interactive bool False Skip prompts

source

remove

 remove (obsidian_path:str=None, list_first:bool=False)

Remove a sync pair from configuration

Type Default Details
obsidian_path str None Obsidian path to remove
list_first bool False List options first

source

clear_config

 clear_config ()

Clear all sync pairs from configuration


source

list_pairs

 list_pairs ()

List all configured sync pairs


source

sync

 sync (obsidian_path:str=None, dry_run:bool=False, all_pairs:bool=False)

Sync Obsidian markdown files to Quarto

Type Default Details
obsidian_path str None Specific obsidian path to sync
dry_run bool False Show what would be done without doing it
all_pairs bool False Sync all configured pairs

source

main

 main ()

Main entry point that dispatches to subcommands