CustomKind#
- class cli_interview_kit.CustomKind[source]#
Bases:
FrozenModelA question kind an app defines, with its own flag form and prompt.
Registered in
Interview.custom_kindsunder the name a question’scustomrefers to. Its flag is repeatable.- Attributes:
- flag_formstr
How one flag value is written, for help and
--questions.- parseCallable[[list[str]], Any]
Turns the flag’s values into the answer; raises
CliError.- promptCallable[[Console], Any]
Asks for the answer in a terminal, validating as it goes.