Skip to main content

commands::CommandInfo

commands::CommandInfo

Static metadata describing a registered command. More…

#include <CommandInfo.hpp>

Public Attributes

Name
std::string name
Command display and registry name (must match ICommand::commandName()).
std::string description
Human-readable description shown in command pickers and editors.
std::string category
Logical grouping for UI organization.
bool supports_undo
True if the command implements undo via ICommand::undo().
std::vector< std::string > supported_data_types
Data types this command can operate on.
ParameterSchema parameter_schema
Schema describing the command’s JSON parameters.

Detailed Description

struct commands::CommandInfo;

Static metadata describing a registered command.

One CommandInfo exists per command type. It provides the information needed for UI command pickers, guided editors, and introspection.

Public Attributes Documentation

variable name

std::string name;

Command display and registry name (must match ICommand::commandName()).

variable description

std::string description;

Human-readable description shown in command pickers and editors.

variable category

std::string category;

Logical grouping for UI organization.

Examples: “data_mutation”, “meta”, “persistence”, “navigation”.

variable supports_undo

bool supports_undo = false;

True if the command implements undo via ICommand::undo().

variable supported_data_types

std::vector< std::string > supported_data_types;

Data types this command can operate on.

Empty when the command is not tied to a specific data object type.

variable parameter_schema

ParameterSchema parameter_schema;

Schema describing the command’s JSON parameters.

Populated automatically by registerTypedCommand() or set manually when registering via CommandRegistry::registerCommand().


Updated on 2026-11-13 at 20:25:42 +0000