yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
graphics_context_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_GRAPHICS_GRAPHICS_CONTEXT_COMMANDS_H_
2#define YAZE_CLI_HANDLERS_GRAPHICS_GRAPHICS_CONTEXT_COMMANDS_H_
3
5
6namespace yaze::cli {
7
9 public:
10 std::string GetName() const override { return "graphics-context"; }
11
12 std::string GetUsage() const override {
13 return "graphics-context (--map <hex> | --room <hex>) [--format json|text]";
14 }
15
16 std::string GetDefaultFormat() const override { return "json"; }
17
18 std::string GetOutputTitle() const override { return "Graphics Context"; }
19
20 bool RequiresRom() const override { return true; }
21
22 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override;
23
24 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
25 resources::OutputFormatter& formatter) override;
26};
27
28} // namespace yaze::cli
29
30#endif // YAZE_CLI_HANDLERS_GRAPHICS_GRAPHICS_CONTEXT_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:49
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.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
std::string GetOutputTitle() const override
Get the output title for formatting.
std::string GetUsage() const override
Get the command usage string.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
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.