1#ifndef YAZE_SRC_CLI_HANDLERS_RESOURCE_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_RESOURCE_COMMANDS_H_
15 std::string
GetName()
const {
return "resource-list"; }
17 return "List resource labels for a specific type";
20 return "resource-list --type <type> [--format <json|text>]";
36 std::string
GetName()
const {
return "resource-search"; }
38 return "Search resource labels across all categories";
41 return "resource-search --query <query> [--type <type>] [--format <json|text>]";
The Rom class is used to load, save, and modify Rom data.
Command handler for listing resource labels by type.
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.
std::string GetDescription() const
Command handler for searching resource labels.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetDescription() const
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.
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.