yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_group_commands.h
Go to the documentation of this file.
1#ifndef YAZE_SRC_CLI_HANDLERS_DUNGEON_GROUP_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_DUNGEON_GROUP_COMMANDS_H_
3
4#include <string>
5
6#include "absl/status/status.h"
8
9namespace yaze {
10namespace cli {
11namespace handlers {
12
21 public:
22 std::string GetName() const { return "dungeon-group"; }
23 std::string GetDescription() const {
24 return "Organize and list rooms grouped by dungeon ID";
25 }
26 std::string GetUsage() const {
27 return "dungeon-group --rom <path> [--dungeon <id>] [--list] "
28 "[--format <json|text>]";
29 }
30
31 absl::Status ValidateArgs(
32 const resources::ArgumentParser& /*parser*/) override {
33 // No required args - lists all dungeons by default
34 return absl::OkStatus();
35 }
36
37 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
38 resources::OutputFormatter& formatter) override;
39};
40
41} // namespace handlers
42} // namespace cli
43} // namespace yaze
44
45#endif // YAZE_SRC_CLI_HANDLERS_DUNGEON_GROUP_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
Command handler for organizing rooms by dungeon ID.
absl::Status ValidateArgs(const resources::ArgumentParser &) override
Validate command arguments.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, 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.