CLI
Command Line Interface
list_configured_pairs
list_configured_pairs ()
Display all configured sync pairs
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.
validate_path
validate_path (path_str:str, must_exist:bool=True, must_be_dir:bool=True)
Validate and return Path object
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 |
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 |
clear_config
clear_config ()
Clear all sync pairs from configuration
list_pairs
list_pairs ()
List all configured sync pairs
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 |
main
main ()
Main entry point that dispatches to subcommands