Base class for TUI-integrated command handlers. More...
#include <enhanced_tui.h>


Public Member Functions | |
| TUICommandHandler (EnhancedTUI *tui) | |
Public Member Functions inherited from yaze::cli::resources::CommandHandler | |
| virtual | ~CommandHandler ()=default |
| absl::Status | Run (const std::vector< std::string > &args, Rom *rom_context, std::string *captured_output=nullptr) |
| Execute the command. | |
| virtual std::string | GetName () const =0 |
| Get the command name. | |
| virtual Descriptor | Describe () const |
| Provide metadata for TUI/help summaries. | |
| virtual std::string | GetUsage () const =0 |
| Get the command usage string. | |
| virtual bool | RequiresRom () const |
| Check if the command requires a loaded ROM. | |
| virtual bool | RequiresLabels () const |
| Check if the command requires ROM labels. | |
| virtual void | SetProjectContext (project::YazeProject *project) |
| Set the YazeProject context. Default implementation does nothing, override if tool needs project info. | |
| virtual void | SetAsarWrapper (core::AsarWrapper *asar_wrapper) |
| Set the AsarWrapper context. Default implementation does nothing, override if tool needs Asar access. | |
| virtual void | SetRomContext (Rom *rom) |
| Set the ROM context for tools that need ROM access. Default implementation stores the ROM pointer for subclass use. | |
Protected Member Functions | |
| virtual void | DisplayProgress (const std::string &message) |
| virtual void | DisplayRichOutput (const std::string &output) |
| virtual absl::StatusOr< std::string > | PromptUser (const std::string &) |
| virtual std::string | GetCommandName () const =0 |
Protected Member Functions inherited from yaze::cli::resources::CommandHandler | |
| virtual absl::Status | ValidateArgs (const ArgumentParser &parser)=0 |
| Validate command arguments. | |
| virtual absl::Status | Execute (Rom *rom, const ArgumentParser &parser, OutputFormatter &formatter)=0 |
| Execute the command business logic. | |
| virtual std::string | GetDefaultFormat () const |
| Get the default output format ("json" or "text") | |
| virtual std::string | GetOutputTitle () const |
| Get the output title for formatting. | |
Private Attributes | |
| EnhancedTUI * | tui_ = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from yaze::cli::resources::CommandHandler | |
| Rom * | rom_ = nullptr |
| project::YazeProject * | project_ = nullptr |
| core::AsarWrapper * | asar_wrapper_ = nullptr |
Base class for TUI-integrated command handlers.
Extends CommandHandler with TUI-specific features:
Definition at line 237 of file enhanced_tui.h.
|
inlineexplicit |
Definition at line 239 of file enhanced_tui.h.
|
inlineprotectedvirtual |
Definition at line 243 of file enhanced_tui.h.
References tui_, and yaze::cli::agent::EnhancedTUI::UpdateStatusBar().

|
inlineprotectedvirtual |
Definition at line 249 of file enhanced_tui.h.
References yaze::cli::agent::EnhancedTUI::DisplayToolOutput(), GetCommandName(), and tui_.

|
inlineprotectedvirtual |
Definition at line 255 of file enhanced_tui.h.
|
protectedpure virtual |
Referenced by DisplayRichOutput().
|
private |
Definition at line 265 of file enhanced_tui.h.
Referenced by DisplayProgress(), and DisplayRichOutput().