INNER CODE UNIT · Python

export_obsidian_cmd

yifanfeng97/Hyper-Extract · hyperextract/cli/cli.py:509

def export_obsidian_cmd(
    ka_path: str = typer.Argument(..., help="Knowledge Abstract directory"),
    output: str = typer.Option(..., "--output", "-o", help="Output vault directory"),
    name: str | None = typer.Option(
        None, "--name", help="Vault name used for the index note"
    ),
    no_index: bool = typer.Option(
        False, "--no-index", help="Skip writing the index/map-of-content note"
    ),
    force: bool = typer.Option(
        False, "--force", "-f", help="Write into an existing, non-empty directory"
    ),
):
    """Export a Knowledge Abstract to an Obsidian vault (Markdown + wikilinks)."""
    logger.info("command=export-obsidian ka_path=%s output=%s", ka_path, output)

    path = validate_ka_with_data(ka_path)
    template, lang = get_template_from_ka(path)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…