guardianctl
Modules:
-
cli–CLI-Tool für guardianctl (Typer).
cli
CLI-Tool für guardianctl (Typer).
Functions:
-
create_command–Dynamically create and register a command with the Typer app instance.
-
format_command_output–Format command output in a user-friendly way based on the command type.
-
get_available_commands–Query the daemon for available commands and their descriptions.
-
ipc_call–Send an IPC command to the daemon and return the response.
-
register_diagnostic_commands–Register diagnostic commands for when we can't connect to the daemon.
-
register_dynamic_commands–Register commands dynamically based on what the IPC server supports.
create_command
Dynamically create and register a command with the Typer app instance.
format_command_output
Format command output in a user-friendly way based on the command type.
Parameters:
-
(commandstr) –The IPC command name
-
(datadict) –The parsed JSON response data
-
(paramstr, default:None) –The parameter passed to the command (if any)
get_available_commands
Query the daemon for available commands and their descriptions.
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.