20#ifndef ORES_SHELL_APP_COMMANDS_SUBSCRIPTION_COMMANDS_HPP
21#define ORES_SHELL_APP_COMMANDS_SUBSCRIPTION_COMMANDS_HPP
24#include "ores.nats/service/nats_client.hpp"
32namespace ores::shell::app::commands {
79 std::string event_type);
90 std::string event_type);
Authenticated NATS client for both interactive and service-to-service use.
Definition nats_client.hpp:71
Manages commands related to event subscriptions and notifications.
Definition subscription_commands.hpp:44
static void process_unlisten(std::ostream &out, ores::nats::service::nats_client &session, std::string event_type)
Process an unlisten (unsubscribe) request.
Definition subscription_commands.cpp:73
static std::size_t display_pending_notifications(std::ostream &out, ores::nats::service::nats_client &session)
Display pending notifications without clearing them.
Definition subscription_commands.cpp:89
static void register_commands(cli::Menu &root, ores::nats::service::nats_client &session)
Register subscription management commands.
Definition subscription_commands.cpp:31
static void process_listen(std::ostream &out, ores::nats::service::nats_client &session, std::string event_type)
Process a listen (subscribe) request.
Definition subscription_commands.cpp:67
static void process_channels(std::ostream &out, ores::nats::service::nats_client &session)
List available event channels.
Definition subscription_commands.cpp:62
static void process_subscriptions(std::ostream &out, ores::nats::service::nats_client &session)
Display current subscriptions.
Definition subscription_commands.cpp:79
static void process_notifications(std::ostream &out, ores::nats::service::nats_client &session)
Display and clear pending notifications.
Definition subscription_commands.cpp:84