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"; }
17 return "List available sprites";
20 return "sprite-list [--type <type>] [--limit <limit>] [--format <json|text>]";
24 return absl::OkStatus();
36 std::string
GetName()
const {
return "sprite-properties"; }
38 return "Get properties of a specific sprite";
41 return "sprite-properties --id <sprite_id> [--format <json|text>]";
57 std::string
GetName()
const {
return "sprite-palette"; }
59 return "Get palette information for a sprite";
62 return "sprite-palette --id <sprite_id> [--format <json|text>]";
The Rom class is used to load, save, and modify Rom data.
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.
Main namespace for the application.