CustomKind#

class cli_interview_kit.CustomKind[source]#

Bases: FrozenModel

A question kind an app defines, with its own flag form and prompt.

Registered in Interview.custom_kinds under the name a question’s custom refers 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.