1#ifndef YAZE_SRC_CLI_HANDLERS_SPRITE_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_SPRITE_COMMANDS_H_
15 std::string
GetName()
const {
return "sprite-list"; }
18 return "sprite-list [--type <type>] [--limit <limit>] [--format "
23 return absl::OkStatus();
35 std::string
GetName()
const {
return "sprite-properties"; }
37 return "Get properties of a specific sprite";
40 return "sprite-properties --id <sprite_id> [--format <json|text>]";
56 std::string
GetName()
const {
return "sprite-palette"; }
58 return "Get palette information for a sprite";
61 return "sprite-palette --id <sprite_id> [--format <json|text>]";
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 sprites.
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.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const
Get the command usage string.
Command handler for getting sprite palette information.
std::string GetDescription() const
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 GetName() const
Get the command name.
Command handler for getting sprite properties.
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
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.