yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
graphics_doctor_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_GRAPHICS_DOCTOR_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_GRAPHICS_DOCTOR_COMMANDS_H
3
5
6namespace yaze {
7namespace cli {
8
19 public:
20 std::string GetName() const override { return "graphics-doctor"; }
21
22 std::string GetUsage() const override {
23 return "graphics-doctor [--sheet <id>] [--all] [--verbose] [--format json|text]";
24 }
25
26 std::string GetDefaultFormat() const override { return "text"; }
27
28 std::string GetOutputTitle() const override { return "Graphics Doctor"; }
29
30 bool RequiresRom() const override { return true; }
31
32 Descriptor Describe() const override {
33 Descriptor desc;
34 desc.display_name = "graphics-doctor";
35 desc.summary =
36 "Validate graphics sheets, compression, and palette references.";
37 return desc;
38 }
39
40 absl::Status ValidateArgs(
41 const resources::ArgumentParser& parser) override {
42 return absl::OkStatus();
43 }
44
45 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
46 resources::OutputFormatter& formatter) override;
47};
48
49} // namespace cli
50} // namespace yaze
51
52#endif // YAZE_CLI_HANDLERS_TOOLS_GRAPHICS_DOCTOR_COMMANDS_H
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
Graphics doctor command for validating graphics sheets and blocksets.
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 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.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const override
Get the command name.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.