1#ifndef YAZE_SRC_CLI_HANDLERS_ROM_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_ROM_COMMANDS_H_
15 std::string
GetName()
const {
return "rom-info"; }
17 std::string
GetUsage()
const {
return "rom-info"; }
20 return absl::OkStatus();
32 std::string
GetName()
const {
return "rom-validate"; }
34 std::string
GetUsage()
const {
return "rom-validate"; }
37 return absl::OkStatus();
49 std::string
GetName()
const {
return "rom-diff"; }
51 std::string
GetUsage()
const {
return "rom-diff --rom_a <file> --rom_b <file>"; }
66 std::string
GetName()
const {
return "rom-generate-golden"; }
67 std::string
GetDescription()
const {
return "Generate golden ROM file for testing"; }
68 std::string
GetUsage()
const {
return "rom-generate-golden --rom_file <file> --golden_file <file>"; }
71 return parser.
RequireArgs({
"rom_file",
"golden_file"});
The Rom class is used to load, save, and modify Rom data.
Command handler for comparing ROM files.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
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.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for generating golden ROM files.
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.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
Command handler for displaying ROM information.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const
Get the command usage string.
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.
Command handler for validating ROM files.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
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.
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.