#include <cli.h>
Public Member Functions | |
ModernCLI () | |
absl::Status | Run (int argc, char *argv[]) |
void | PrintTopLevelHelp () const |
void | PrintCategoryHelp (const std::string &category) const |
void | PrintCommandSummary () const |
Private Member Functions | |
void | SetupCommands () |
void | ShowHelp () |
void | ShowCategoryHelp (const std::string &category) const |
void | ShowCommandSummary () const |
Private Attributes | |
std::map< std::string, std::unique_ptr< resources::CommandHandler > > | commands_ |
yaze::cli::ModernCLI::ModernCLI | ( | ) |
Definition at line 13 of file cli.cc.
References SetupCommands().
absl::Status yaze::cli::ModernCLI::Run | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 24 of file cli.cc.
References commands_, yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), yaze::cli::tui::ChatTUI::Run(), ShowCategoryHelp(), and ShowHelp().
Referenced by main().
void yaze::cli::ModernCLI::PrintTopLevelHelp | ( | ) | const |
Definition at line 160 of file cli.cc.
References ShowHelp().
void yaze::cli::ModernCLI::PrintCategoryHelp | ( | const std::string & | category | ) | const |
Definition at line 164 of file cli.cc.
References ShowCategoryHelp().
Referenced by main().
void yaze::cli::ModernCLI::PrintCommandSummary | ( | ) | const |
Definition at line 168 of file cli.cc.
References ShowCommandSummary().
Referenced by main().
|
private |
Definition at line 17 of file cli.cc.
References commands_, and yaze::cli::handlers::CreateAllCommandHandlers().
Referenced by ModernCLI().
|
private |
Definition at line 68 of file cli.cc.
References yaze::cli::GetColoredLogo().
Referenced by PrintTopLevelHelp(), and Run().
|
private |
Definition at line 98 of file cli.cc.
References commands_.
Referenced by PrintCategoryHelp(), and Run().
|
private |
|
private |
Definition at line 45 of file cli.h.
Referenced by Run(), SetupCommands(), ShowCategoryHelp(), and ShowCommandSummary().