Skip to content

commands

drunc.unified_shell.commands

Classes

Functions

start_shell(ctx, obj)

Start an interactive shell session.

This command stops batch mode and enters an interactive shell state, allowing you to execute commands interactively.

Source code in drunc/unified_shell/commands.py
@click.command("start-shell")
@click.pass_obj
@click.pass_context
def start_shell(ctx, obj):
    """
    Start an interactive shell session.

    This command stops batch mode and enters an interactive shell state,
    allowing you to execute commands interactively.
    """
    log = get_logger("unified_shell.start_shell")

    obj.running_mode = UnifiedShellMode.SEMIBATCH
    log.info("Switching to interactive mode...")