|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Classes | |
| struct | app_state |
| Runtime application state. More... | |
| struct | cli_args |
| Parsed command-line arguments. More... | |
| class | tui_sink |
| Custom spdlog sink that routes log messages to a display queue. More... | |
Typedefs | |
| using | tui_sink_mutex_t = tui_sink< std::mutex > |
| Type alias for mutex-protected TUI sink. | |
Functions | |
| auto | configure_logging (const cli_args &args, std::shared_ptr< async::async_queue< core::events::display_filter_input_t > > display_queue=nullptr) -> void |
| Configures spdlog logging based on CLI arguments. | |
| auto | print_app_banner (const app_state &state) -> void |
| Prints the application startup banner. | |
| auto | print_available_commands () -> void |
| Prints list of available interactive commands. | |
| template<concepts::command_handler CmdHandler> | |
| auto | execute_cli_command (const cli_args &args, std::shared_ptr< CmdHandler > command_handler) -> bool |
| Executes a command specified via CLI arguments. | |
| auto | setup_cli_app (CLI::App &app, cli_args &args) -> void |
| Configures CLI11 application with command-line options. | |
| auto | parse_cli_args (int argc, char **argv) -> cli_args |
| Parses command-line arguments into a cli_args structure. | |
| auto | validate_cli_args (const cli_args &args) -> bool |
| Validates parsed command-line arguments for logical consistency. | |
| using radix_relay::cli_utils::tui_sink_mutex_t = typedef tui_sink<std::mutex> |
Type alias for mutex-protected TUI sink.
Definition at line 63 of file tui_sink.hpp.
|
inline |
Configures spdlog logging based on CLI arguments.
| args | Parsed command-line arguments |
| display_queue | Optional queue for routing log messages to TUI |
Definition at line 32 of file app_init.hpp.
|
inline |
Executes a command specified via CLI arguments.
| CmdHandler | Command handler type |
| args | Parsed CLI arguments |
| command_handler | Handler to execute commands |
Definition at line 76 of file app_init.hpp.
References radix_relay::core::events::send::peer.
|
inline |
Parses command-line arguments into a cli_args structure.
| argc | Argument count from main() |
| argv | Argument vector from main() |
Definition at line 44 of file cli_parser.hpp.
References radix_relay::platform::expand_tilde_path(), radix_relay::cli_utils::cli_args::identity_path, and setup_cli_app().
|
inline |
Prints the application startup banner.
| state | Current application state |
Definition at line 49 of file app_init.hpp.
|
inline |
Prints list of available interactive commands.
Definition at line 60 of file app_init.hpp.
|
inline |
Configures CLI11 application with command-line options.
| app | CLI11 application instance |
| args | Structure to populate with parsed arguments |
Definition at line 63 of file cli_parser.hpp.
Referenced by parse_cli_args().
|
inline |
Validates parsed command-line arguments for logical consistency.
| args | Parsed arguments to validate |
Definition at line 90 of file cli_parser.hpp.