installation_instruction.get_flags_and_options_from_schema

Attributes

SCHEMA_TO_CLICK_TYPE_MAPPING

Functions

_get_flags_and_options(→ list[click.Option])

Generates Click flags and options from a JSON schema.

Module Contents

installation_instruction.get_flags_and_options_from_schema.SCHEMA_TO_CLICK_TYPE_MAPPING
installation_instruction.get_flags_and_options_from_schema._get_flags_and_options(schema: dict, misc: dict = None, inst: bool = False) list[click.Option]

Generates Click flags and options from a JSON schema.

Parameters:
  • schema (dict) – Schema which contains the options.

  • misc – Additional descriptions and pretty print names nested.

Returns:

List of all the clickoptions from the schema.

Return type:

list[Option]