Cli2gui Index / Cli2gui / Tojson / Click2json
Auto-generated documentation for cli2gui.tojson.click2json module.
Show source in click2json.py:29
Generate json for an action and set the widget - used by the application.
def actionToJson(action: Any, widget: ItemType, other: dict | None = None) -> Item: ...
Show source in click2json.py:47
Catergorise each action and generate json.
def categorize(actions: list[Any]) -> Generator[Item, None, None]: ...
Show source in click2json.py:66
Convert click to a dict.
parser
click.core.Command - click parser
ParserRep
- dictionary representing parser object
def convert(parser: Any) -> ParserRep: ...
Show source in click2json.py:11
Get the actions as json for the parser.
def extract(parser: Any) -> list[Group]: ...