yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
rom_doctor_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_ROM_DOCTOR_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_ROM_DOCTOR_COMMANDS_H
3
5
6namespace yaze::cli {
7
21 public:
22 std::string GetName() const override { return "rom-doctor"; }
23
24 std::string GetDescription() const {
25 return "Diagnose ROM file integrity, checksums, and expansion status";
26 }
27
28 std::string GetUsage() const override {
29 return "rom-doctor --rom <path> [--format json|text] [--verbose]";
30 }
31
32 std::string GetDefaultFormat() const override { return "text"; }
33
34 std::string GetOutputTitle() const override { return "ROM Doctor"; }
35
36 Descriptor Describe() const override {
37 Descriptor desc;
38 desc.display_name = "rom-doctor";
39 desc.summary = "Diagnose ROM file integrity including checksums, "
40 "header validation, expansion status, and version markers.";
41 desc.todo_reference = "todo#rom-doctor";
42 return desc;
43 }
44
45 absl::Status ValidateArgs(
46 const resources::ArgumentParser& parser) override {
47 return absl::OkStatus();
48 }
49
50 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
51 resources::OutputFormatter& formatter) override;
52};
53
54} // namespace yaze::cli
55
56#endif // YAZE_CLI_HANDLERS_TOOLS_ROM_DOCTOR_COMMANDS_H
57
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
ROM doctor command for file integrity validation.
std::string GetOutputTitle() const override
Get the output title for formatting.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.
Namespace for the command line interface.