Context
CliContext
dataclass
¶
Holds various state and I/O for commands.
Source code in nava/platform/cli/context.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
exception_handler
instance-attribute
¶
Handle exceptions with this context object.
exit
instance-attribute
¶
Exits the application with a given exit code.
fail_with_usage
instance-attribute
¶
Aborts the execution of the program with a specific error message and CLI help message.
fail(message)
¶
Aborts the execution of the program with a specific error message.
Source code in nava/platform/cli/context.py
28 29 30 31 |
|