yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
message_doctor_commands.h
Go to the documentation of this file.
1#ifndef YAZE_SRC_CLI_HANDLERS_TOOLS_MESSAGE_DOCTOR_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_TOOLS_MESSAGE_DOCTOR_COMMANDS_H_
3
5
6namespace yaze {
7namespace cli {
8
10 public:
12 ~MessageDoctorCommandHandler() override = default;
13
14 std::string GetName() const override { return "message-doctor"; }
15 std::string GetUsage() const override { return "message-doctor [flags]"; }
16
19 desc.summary = "Scan and validate in-game messages/dialogue";
20 return desc;
21 }
22
23 bool RequiresRom() const override { return true; }
24
25 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override {
26 // No required arguments other than ROM which is handled by base class
27 return absl::OkStatus();
28 }
29
30 absl::Status Execute(Rom* rom, const resources::ArgumentParser& args,
31 resources::OutputFormatter& formatter) override;
32};
33
34} // namespace cli
35} // namespace yaze
36
37#endif // YAZE_SRC_CLI_HANDLERS_TOOLS_MESSAGE_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
std::string GetName() const override
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
resources::CommandHandler::Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetUsage() const override
Get the command usage string.
~MessageDoctorCommandHandler() override=default
absl::Status Execute(Rom *rom, const resources::ArgumentParser &args, resources::OutputFormatter &formatter) override
Execute the command business logic.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.