azad.main Module¶
azad.main ¶
Attributes¶
Classes¶
Functions¶
setup_main_logging ¶
Set up logging configuration.
Source code in azad/main.py
write_pid_file ¶
Write the current process ID to the PID file.
Source code in azad/main.py
remove_pid_file ¶
Remove the PID file if it exists.
Source code in azad/main.py
read_pid_from_file ¶
Read the PID from the PID file.
Source code in azad/main.py
create_argument_parser ¶
Create and return the main argument parser with subcommands.
Source code in azad/main.py
start_daemon
async
¶
start_daemon(args: Namespace, config: GlobalConfig) -> None
Asynchronous function to start the agent daemon.
Source code in azad/main.py
run_start_command ¶
Handler for the 'start' subcommand.
Source code in azad/main.py
run_introspect_command ¶
Handler for the 'introspect' subcommand.
Source code in azad/main.py
run_stop_command ¶
Handler for the 'stop' subcommand.
Source code in azad/main.py
run_main_sync ¶
Synchronous wrapper that parses args and calls the appropriate subcommand handler.