|
lintel 0.2.0
|
#include <MessageQueueCliComponent.h>
Public Member Functions | |
| MessageQueueCliComponent (std::shared_ptr< MesssageQueueApi > messsageQueueApi) | |
| void | onHelp () override |
| void | onCommand (const UserDto &userDto, const std::string &command, const std::vector< std::string > ¶meters) override |
| void | onShowMenu () override |
| bool | onMenu (const std::string &component) override |
| bool | onExit () override |
| void | printCommandList (std::set< std::string > menuAlias) override |
| std::vector< std::string > | allCommandsOf () override |
Public Member Functions inherited from lintel::CommandLineComponent | |
| CommandLineComponent (std::string_view name, std::string_view alias) | |
| virtual | ~CommandLineComponent ()=default |
| std::string_view | getName () |
| std::string_view | getAlias () |
| virtual std::set< std::string > | menuEntriesOf () |
CLI component that displays message queue statistics
|
explicit |
| messsageQueueApi | API for retrieving message queue data |
|
overridevirtual |
Implements lintel::CommandLineComponent.
|
overridevirtual |
Handle a command entered by the user
Implements lintel::CommandLineComponent.
|
overridevirtual |
CommandLineService currently discards the result and exits either way; a component that can veto the exit overrides this.
Implements lintel::CommandLineComponent.
|
overridevirtual |
Show help for this component
Implements lintel::CommandLineComponent.
| component | name to navigate to; return true if handled |
Reached with input that CommandParser could not classify, i.e. with a free-text line rather than a real command. CommandLineService prints "Invalid command" for a component that returns false, so a component without sub-menus returns false - returning true unconditionally would swallow every typo at the prompt without a word.
Implements lintel::CommandLineComponent.
|
overridevirtual |
Show the menu for this component
Implements lintel::CommandLineComponent.
|
overridevirtual |
Print the list of available commands
Implements lintel::CommandLineComponent.