cloudos_cli.utils.cli_helpers

CLI helper utilities for debug mode and exception handling.

Functions

custom_exception_handler(exc_type, ...)

Custom exception handler that respects debug mode

get_debug_mode()

Get current debug mode state

pass_debug_to_subcommands([group_cls])

Custom Group class that passes --debug option to all subcommands

setup_debug(ctx, param, value)

Setup debug mode globally and in context

cloudos_cli.utils.cli_helpers.custom_exception_handler(exc_type, exc_value, exc_traceback)[source]

Custom exception handler that respects debug mode

cloudos_cli.utils.cli_helpers.get_debug_mode()[source]

Get current debug mode state

cloudos_cli.utils.cli_helpers.pass_debug_to_subcommands(group_cls=<class 'rich_click.rich_command.RichGroup'>)[source]

Custom Group class that passes –debug option to all subcommands

cloudos_cli.utils.cli_helpers.setup_debug(ctx, param, value)[source]

Setup debug mode globally and in context