Skip to content

shore.gui.cli_forms ​

GUI forms generated from the CLI (ADR 0062).

Every leaf command of the shore typer app becomes a form keyed "cli:<command path>": its options and arguments as typed fields (named as the CLI's Python parameters, with its defaults, choices and help), less the ones the GUI owns. Submitting one runs the CLI command in-process on the session's project (shore.cli.using_project), so the GUI has every CLI capability with the CLI's own defaults and journal lines.

Qt-free: the window renders the fields; argv turns submitted values back into the command line.

leaf_commands function ​

python
leaf_commands() -> list[tuple[str, click.Command]]

source

(command path, click command) of every leaf command of the CLI.

cli_forms function ​

python
cli_forms() -> tuple[Form, ...]

source

A form per CLI leaf command, MAPPED and EXCLUDED aside.

argv function ​

python
argv(form: Form, values: dict[str, Any]) -> list[str]

source

The command line of form (a cli: form) for submitted values.

Released under the MIT License.