1#ifndef YAZE_SRC_CLI_HANDLERS_GUI_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_GUI_COMMANDS_H_
15 std::string
GetName()
const {
return "gui-place-tile"; }
17 return "Place a tile at specific coordinates using GUI automation";
20 return "gui-place-tile --tile <tile_id> --x <x> --y <y> [--format <json|text>]";
36 std::string
GetName()
const {
return "gui-click"; }
38 return "Click on a GUI element using automation";
41 return "gui-click --target <target> [--click-type <left|right|middle>] [--format <json|text>]";
57 std::string
GetName()
const {
return "gui-discover-tool"; }
59 return "Discover available GUI tools and widgets";
62 return "gui-discover-tool [--window <window>] [--type <type>] [--format <json|text>]";
66 return absl::OkStatus();
78 std::string
GetName()
const {
return "gui-screenshot"; }
80 return "Take a screenshot of the GUI";
83 return "gui-screenshot [--region <region>] [--format <format>] [--format <json|text>]";
87 return absl::OkStatus();
The Rom class is used to load, save, and modify Rom data.
Command handler for clicking GUI elements.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
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 GetDescription() const
Command handler for placing tiles via GUI automation.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Command handler for taking screenshots.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDescription() const
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetName() const
Get the command name.
Utility for parsing common CLI argument patterns.
absl::Status RequireArgs(const std::vector< std::string > &required) const
Validate that required arguments are present.
Base class for CLI command handlers.
Main namespace for the application.