ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
variability_commands Class Reference

Manages commands related to variability subsystem. More...

#include <variability_commands.hpp>

Collaboration diagram for variability_commands:
Collaboration graph

Static Public Member Functions

static void register_commands (cli::Menu &root_menu, comms::net::client_session &session)
 Register variability-related commands.
 
static void process_list_feature_flags (std::ostream &out, comms::net::client_session &session)
 Process a list feature flags request.
 
static void process_add_feature_flag (std::ostream &out, comms::net::client_session &session, std::string name, std::string enabled, std::string description, std::string change_reason_code, std::string change_commentary)
 Process an add feature flag request.
 
static void process_delete_feature_flag (std::ostream &out, comms::net::client_session &session, std::string name)
 Process a delete feature flag request.
 
static void process_get_feature_flag_history (std::ostream &out, comms::net::client_session &session, std::string name)
 Process a get feature flag history request.
 

Detailed Description

Manages commands related to variability subsystem.

Handles feature flags, configuration toggles, and other variability-related operations.

Member Function Documentation

◆ register_commands()

void register_commands ( cli::Menu &  root_menu,
comms::net::client_session session 
)
static

Register variability-related commands.

Creates the variability submenu and adds variability operations.

◆ process_list_feature_flags()

void process_list_feature_flags ( std::ostream &  out,
comms::net::client_session session 
)
static

Process a list feature flags request.

Retrieves all feature flags from the server and displays them.

Parameters
outOutput stream for results
sessionClient session for connectivity.
Here is the caller graph for this function:

◆ process_add_feature_flag()

void process_add_feature_flag ( std::ostream &  out,
comms::net::client_session session,
std::string  name,
std::string  enabled,
std::string  description,
std::string  change_reason_code,
std::string  change_commentary 
)
static

Process an add feature flag request.

Creates a new feature flag with the provided details.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameUnique flag name
enabledWhether the flag is enabled ("true" or "false")
descriptionHuman-readable description
change_reason_codeCode identifying the reason for the change
change_commentaryFree-text commentary
Here is the caller graph for this function:

◆ process_delete_feature_flag()

void process_delete_feature_flag ( std::ostream &  out,
comms::net::client_session session,
std::string  name 
)
static

Process a delete feature flag request.

Deletes a feature flag by its name. Requires authentication.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameName of the feature flag to delete
Here is the caller graph for this function:

◆ process_get_feature_flag_history()

void process_get_feature_flag_history ( std::ostream &  out,
comms::net::client_session session,
std::string  name 
)
static

Process a get feature flag history request.

Retrieves the version history for a feature flag by its name.

Parameters
outOutput stream for results
sessionClient session for connectivity.
nameName of the feature flag
Here is the caller graph for this function: