yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_stream_plan_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_GAME_DUNGEON_STREAM_PLAN_COMMANDS_H_
2#define YAZE_CLI_HANDLERS_GAME_DUNGEON_STREAM_PLAN_COMMANDS_H_
3
4#include <string>
5
6#include "absl/status/status.h"
8
9namespace yaze::cli::handlers {
10
11// Read-only inventory, alias/overlap, and free-space diagnostics for
12// manifest-owned dungeon streams. Despite its historical name, this command
13// neither accepts replacements nor emits an immutable move/write plan; that
14// replacement-aware output is pending.
16 public:
17 std::string GetName() const override { return "dungeon-stream-plan"; }
18 std::string GetUsage() const override {
19 return "dungeon-stream-plan --kind <objects|sprites|pot_items> "
20 "--manifest <path> [--format <json|text>]";
21 }
22
23 protected:
24 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override;
25 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
26 resources::OutputFormatter& formatter) override;
27};
28
29} // namespace yaze::cli::handlers
30
31#endif // YAZE_CLI_HANDLERS_GAME_DUNGEON_STREAM_PLAN_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:28
std::string GetName() const override
Get the command name.
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.
std::string GetUsage() const override
Get the command usage string.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.