1#ifndef YAZE_CLI_HANDLERS_TOOLS_HEX_INSPECTOR_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_HEX_INSPECTOR_COMMANDS_H
16 std::string
GetName()
const override {
return "hex-dump"; }
19 return "hex-dump <rom_path> <offset> [size] [--mode snes|pc]";
31 desc.
summary =
"Dump a hex view of a ROM file at a specific offset.";
49 std::string
GetName()
const override {
return "hex-compare"; }
52 return "hex-compare <rom1> <rom2> [--start <offset>] [--end <offset>] "
66 "Compare two ROM files byte-by-byte with optional region filtering.";
83 std::string
GetName()
const override {
return "hex-annotate"; }
86 return "hex-annotate <rom_path> <offset> "
87 "[--type auto|room_header|sprite|tile16|message|snes_header]";
99 desc.
summary =
"Show known data structure annotations at a ROM offset.";
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Show known data structure annotations at a ROM offset.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
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 GetOutputTitle() const override
Get the output title for formatting.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
std::string GetUsage() const override
Get the command usage string.
std::string GetName() const override
Get the command name.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
Compare two ROM files byte-by-byte.
std::string GetOutputTitle() const override
Get the output title for formatting.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
bool RequiresRom() const override
Check if the command requires a loaded ROM.
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 GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
Dump a hex view of a ROM file.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetName() const override
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const override
Get the command usage string.
std::string GetOutputTitle() const override
Get the output title for formatting.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
std::string todo_reference