bookclerk_plugin_sdk.cli

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

CLI entry: bookclerk-plugin / python -m bookclerk_plugin_sdk.

Dispatches authoring helpers (check, fmt, types, sync-embed, package, smoke) that mirror the Rust/TypeScript plugin toolchains.

Functions

main

def main(argv: list[str] | None=None) -> int

Run the bookclerk-plugin CLI.

Args

  • argv: Argument vector excluding the program name. Defaults to sys.argv[1:].

Returns

Process exit code (0 success, 1 command failure, 2 usage).

Examples

>>> # python -m bookclerk_plugin_sdk check ./my-plugin
>>> # main(["check", "./my-plugin"])

Generated from packages/plugin-sdk-python at main · View as Markdown