yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::ModernCLI Class Reference

#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 ShowHelp ()
 
void ShowCategoryHelp (const std::string &category) const
 
void ShowCommandSummary () const
 

Detailed Description

Definition at line 27 of file cli.h.

Constructor & Destructor Documentation

◆ ModernCLI()

yaze::cli::ModernCLI::ModernCLI ( )

Definition at line 19 of file cli.cc.

Member Function Documentation

◆ Run()

absl::Status yaze::cli::ModernCLI::Run ( int  argc,
char *  argv[] 
)

◆ PrintTopLevelHelp()

void yaze::cli::ModernCLI::PrintTopLevelHelp ( ) const

Definition at line 212 of file cli.cc.

References ShowHelp().

Here is the call graph for this function:

◆ PrintCategoryHelp()

void yaze::cli::ModernCLI::PrintCategoryHelp ( const std::string &  category) const

Definition at line 216 of file cli.cc.

References ShowCategoryHelp().

Referenced by main().

Here is the call graph for this function:

◆ PrintCommandSummary()

void yaze::cli::ModernCLI::PrintCommandSummary ( ) const

Definition at line 220 of file cli.cc.

References ShowCommandSummary().

Referenced by main().

Here is the call graph for this function:

◆ ShowHelp()

void yaze::cli::ModernCLI::ShowHelp ( )
private

Definition at line 77 of file cli.cc.

References yaze::cli::GetColoredLogo(), and yaze::cli::CommandRegistry::Instance().

Referenced by PrintTopLevelHelp(), and Run().

Here is the call graph for this function:

◆ ShowCategoryHelp()

void yaze::cli::ModernCLI::ShowCategoryHelp ( const std::string &  category) const
private

Definition at line 130 of file cli.cc.

References yaze::cli::CommandRegistry::Instance().

Referenced by PrintCategoryHelp(), and Run().

Here is the call graph for this function:

◆ ShowCommandSummary()

void yaze::cli::ModernCLI::ShowCommandSummary ( ) const
private

Definition at line 171 of file cli.cc.

References yaze::cli::CommandRegistry::Instance().

Referenced by PrintCommandSummary().

Here is the call graph for this function:

The documentation for this class was generated from the following files: