1#ifndef YAZE_SRC_CLI_HANDLERS_DIALOGUE_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_DIALOGUE_COMMANDS_H_
15 std::string
GetName()
const {
return "dialogue-list"; }
17 return "List dialogue messages with previews";
20 return "dialogue-list [--limit <limit>] [--format <json|text>]";
24 return absl::OkStatus();
36 std::string
GetName()
const {
return "dialogue-read"; }
38 return "Read a specific dialogue message";
41 return "dialogue-read --id <message_id> [--format <json|text>]";
57 std::string
GetName()
const {
return "dialogue-search"; }
59 return "Search dialogue messages by text content";
62 return "dialogue-search --query <query> [--limit <limit>] [--format <json|text>]";
The Rom class is used to load, save, and modify Rom data.
Command handler for listing dialogue messages.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDescription() const
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
Command handler for reading dialogue messages.
std::string GetDescription() const
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.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for searching dialogue messages.
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.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
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.
Main namespace for the application.