Skip to content

Latest commit

 

History

History
92 lines (51 loc) · 1.67 KB

click2json.md

File metadata and controls

92 lines (51 loc) · 1.67 KB

Click2json

Cli2gui Index / Cli2gui / Tojson / Click2json

Auto-generated documentation for cli2gui.tojson.click2json module.

actionToJson

Show source in click2json.py:29

Generate json for an action and set the widget - used by the application.

Signature

def actionToJson(action: Any, widget: ItemType, other: dict | None = None) -> Item: ...

See also

categorize

Show source in click2json.py:47

Catergorise each action and generate json.

Signature

def categorize(actions: list[Any]) -> Generator[Item, None, None]: ...

See also

convert

Show source in click2json.py:66

Convert click to a dict.

Arguments


  • parser click.core.Command - click parser

Returns


  • ParserRep - dictionary representing parser object

Signature

def convert(parser: Any) -> ParserRep: ...

See also

extract

Show source in click2json.py:11

Get the actions as json for the parser.

Signature

def extract(parser: Any) -> list[Group]: ...

See also