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 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_
 

Detailed Description

Definition at line 31 of file cli.h.

Constructor & Destructor Documentation

◆ ModernCLI()

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

Definition at line 13 of file cli.cc.

References SetupCommands().

Here is the call graph for this function:

Member Function Documentation

◆ Run()

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

◆ PrintTopLevelHelp()

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

Definition at line 160 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 164 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 168 of file cli.cc.

References ShowCommandSummary().

Referenced by main().

Here is the call graph for this function:

◆ SetupCommands()

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

Definition at line 17 of file cli.cc.

References commands_, and yaze::cli::handlers::CreateAllCommandHandlers().

Referenced by ModernCLI().

Here is the call graph for this function:

◆ ShowHelp()

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

Definition at line 68 of file cli.cc.

References yaze::cli::GetColoredLogo().

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 98 of file cli.cc.

References commands_.

Referenced by PrintCategoryHelp(), and Run().

◆ ShowCommandSummary()

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

Definition at line 132 of file cli.cc.

References commands_.

Referenced by PrintCommandSummary().

Member Data Documentation

◆ commands_

std::map<std::string, std::unique_ptr<resources::CommandHandler> > yaze::cli::ModernCLI::commands_
private

Definition at line 45 of file cli.h.

Referenced by Run(), SetupCommands(), ShowCategoryHelp(), and ShowCommandSummary().


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