1#ifndef YAZE_SRC_CLI_HANDLERS_HEX_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_HEX_COMMANDS_H_
15 std::string
GetName()
const {
return "hex-read"; }
17 return "Read hex data from ROM at specified address";
20 return "hex-read --address <address> [--length <length>] [--format <format>]";
36 std::string
GetName()
const {
return "hex-write"; }
38 return "Write hex data to ROM at specified address";
41 return "hex-write --address <address> --data <data>";
57 std::string
GetName()
const {
return "hex-search"; }
59 return "Search for hex patterns in ROM";
62 return "hex-search --pattern <pattern> [--start <start>] [--end <end>]";
The Rom class is used to load, save, and modify Rom data.
Command handler for reading hex data from ROM.
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.
std::string GetDescription() const
Command handler for searching hex patterns in ROM.
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.
Command handler for writing hex data to ROM.
std::string GetUsage() const
Get the command usage string.
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.
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.