Skip to content

guardianctl

Modules:

  • cli

    CLI-Tool für guardianctl (Typer).

cli

CLI-Tool für guardianctl (Typer).

Functions:

create_command

create_command(
    app_instance, cli_name, ipc_name, description, params
)

Dynamically create and register a command with the Typer app instance.

format_command_output

format_command_output(command, data, param=None)

Format command output in a user-friendly way based on the command type.

Parameters:

  • command

    (str) –

    The IPC command name

  • data

    (dict) –

    The parsed JSON response data

  • param

    (str, default: None ) –

    The parameter passed to the command (if any)

get_available_commands

get_available_commands() -> Dict

Query the daemon for available commands and their descriptions.

ipc_call

ipc_call(command, arg=None)

Send an IPC command to the daemon and return the response.

register_diagnostic_commands

register_diagnostic_commands()

Register diagnostic commands for when we can't connect to the daemon. These commands help diagnose and troubleshoot issues with the daemon connection.

register_dynamic_commands

register_dynamic_commands()

Register commands dynamically based on what the IPC server supports.