1#ifndef YAZE_SRC_CLI_HANDLERS_MESSAGE_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_MESSAGE_COMMANDS_H_
15 std::string
GetName()
const {
return "message-list"; }
18 return "message-list [--limit <limit>] [--format <json|text>]";
22 return absl::OkStatus();
34 std::string
GetName()
const {
return "message-read"; }
37 return "message-read --id <message_id> [--format <json|text>]";
53 std::string
GetName()
const {
return "message-search"; }
55 return "Search messages by text content";
58 return "message-search --query <query> [--limit <limit>] [--format "
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Command handler for listing messages.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Command handler for reading messages.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetName() const
Get the command name.
Command handler for searching messages.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetDescription() const
Utility for parsing common CLI argument patterns.
absl::Status RequireArgs(const std::vector< std::string > &required) const
Validate that required arguments are present.
Base class for CLI command handlers.