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 "
37 std::string
GetName()
const {
return "gui-click"; }
39 return "Click on a GUI element using automation";
42 return "gui-click (--target <target> | --widget-key <key>) [--click-type "
43 "<left|right|middle|double>] [--format <json|text>]";
57 std::string
GetName()
const {
return "gui-type"; }
59 return "Type text into a GUI input using automation";
62 return "gui-type (--target <target> | --widget-key <key>) --text <text> "
63 "[--clear-first] [--format <json|text>]";
77 std::string
GetName()
const {
return "gui-wait"; }
79 return "Wait for a GUI condition or widget selector";
82 return "gui-wait [--condition <condition>] [--widget-key <key>] "
83 "[--timeout-ms <ms>] [--poll-interval-ms <ms>] [--format "
98 std::string
GetName()
const {
return "gui-assert"; }
100 return "Assert a GUI condition or widget selector";
103 return "gui-assert [--condition <condition>] [--widget-key <key>] "
104 "[--format <json|text>]";
118 std::string
GetName()
const {
return "gui-discover-tool"; }
120 return "Discover available GUI tools and widgets";
123 return "gui-discover-tool [--window <window>] [--type <type>] [--format "
128 return absl::OkStatus();
140 std::string
GetName()
const override {
return "gui-summarize-widgets"; }
148 std::string
GetName()
const {
return "gui-screenshot"; }
151 return "gui-screenshot [--region <region>] [--format <format>] [--format "
156 return absl::OkStatus();
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Command handler for GUI assertions.
std::string GetName() const
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
Get the command usage string.
std::string GetDescription() const
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.
Command handler for typing into GUI inputs.
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.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
Command handler for waiting on GUI conditions.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
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.