yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_wall_profile_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_GAME_DUNGEON_WALL_PROFILE_COMMANDS_H_
2#define YAZE_CLI_HANDLERS_GAME_DUNGEON_WALL_PROFILE_COMMANDS_H_
3
5
6namespace yaze::cli::handlers {
7
8// Read-only selection/validation. Optional output is a fresh preview artifact,
9// never a ROM patch, project mutation or native family dispatcher.
11 public:
12 std::string GetName() const override { return "dungeon-wall-profile"; }
13 std::string GetUsage() const override {
14 return "dungeon-wall-profile --source=<profiles.json> --room=<id> "
15 "[--world=<0|1>] [--entrance=<id>] [--legacy-source=<patterns.asm>] "
16 "[--output=<fresh-preview.asm>]";
17 }
18 Descriptor Describe() const override;
19 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override;
20 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
21 resources::OutputFormatter& formatter) override;
22 absl::Status ExecuteWithContext(
23 Rom* rom, const resources::ArgumentParser& parser,
25 const resources::CommandInvocationContext& context) override;
26
27 private:
28 std::string GetDefaultFormat() const override { return "json"; }
29 std::string GetOutputTitle() const override { return "Dungeon Wall Profile"; }
30};
31
32} // namespace yaze::cli::handlers
33
34#endif // YAZE_CLI_HANDLERS_GAME_DUNGEON_WALL_PROFILE_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:52
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
std::string GetUsage() const override
Get the command usage string.
std::string GetName() const override
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetOutputTitle() const override
Get the output title for formatting.
absl::Status ExecuteWithContext(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter, const resources::CommandInvocationContext &context) override
Execute with immutable, invocation-scoped ROM path identity.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.