SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::test::cli::mocks::MockHelpServiceAdapter Class Reference

Адаптер для использования MockHelpService с HelpCommand. More...

#include <MockHelpServiceAdapter.hxx>

Inheritance diagram for svcs::test::cli::mocks::MockHelpServiceAdapter:
svcs::cli::HelpService

Public Member Functions

 MockHelpServiceAdapter (std::shared_ptr< MockHelpService > mockHelpService)
std::shared_ptr< MockHelpServicegetMock () const
Public Member Functions inherited from svcs::cli::HelpService
 HelpService (std::shared_ptr< ISubject > bus, std::function< std::vector< std::string >()> getCommands, std::function< std::string(const std::string &)> getDescription, std::function< void(const std::string &)> showHelp, std::function< std::string(const std::string &)> getUsage=nullptr)
 Constructs the HelpService by injecting necessary dependencies as callbacks.
std::vector< std::string > getAvailableCommands () const
 Executes the getCommandsCallback_ to retrieve the list of all available command names.
std::string getCommandDescription (const std::string &commandName) const
 Executes the getDescriptionCallback_ to retrieve the brief description of a specific command.
void showCommandHelp (const std::string &commandName) const
 Executes the showHelpCallback_ to trigger the display of detailed help for a specific command.
bool commandExists (const std::string &commandName) const
 Checks for the existence of a command by comparing against the list returned by getAvailableCommands.
std::string getCommandUsage (const std::string &commandName) const
 Executes the getUsageCallback_ to retrieve the usage syntax of a specific command.

Detailed Description

Адаптер для использования MockHelpService с HelpCommand.


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