INNER CODE UNIT · Python

version

renezander030/capcut-cli · python/capcut/__init__.py:215

def version() -> str:
    """The installed capcut-cli version, e.g. ``"0.25.0"``."""
    result = run_raw("--version")
    if not result.ok:
        raise CommandError(result)
    return result.stdout.strip()


def describe() -> Any:
    """The full command surface as JSON (``capcut describe``): names, usage, options, exit codes."""
    return run("describe")


def doctor(**flags: Any) -> Any:
    """The ``capcut doctor`` report. Returned even when a hard requirement is missing (exit 1); check ``["ok"]``."""
    result = run_raw("doctor", **flags)
    if result.data is None:
        raise CommandError(result)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…