Command#

class cli_interview_kit.Command[source]#

Bases: FrozenModel

One command.

Attributes:
namestr

The command’s name on the command line.

helpstr

One-line help.

optionstuple[Option, …]

Plain options and positionals.

interviewInterview

Questions and consents. A command with any gets --yes and --questions.

runCallable[[Invocation], None] | None

What the command does; None for a group of subcommands.

subcommandstuple[Command, …]

Nested commands.

interactivebool

Whether the command has questions or consents.

property interactive: bool#

Whether the command has questions or consents.