| 58 | } |
| 59 | |
| 60 | void Usage() { |
| 61 | std::cout << "Available commands" << std::endl << std::endl; |
| 62 | |
| 63 | for (auto& command : _commands) { |
| 64 | std::cout << "Name : " << command->GetCommandName() << std::endl; |
| 65 | std::cout << "Description: " << command->GetCommandDescription() << std::endl; |
| 66 | for (auto& usage : command->GetCommandUsage()) { |
| 67 | std::cout << "Usage : " << command->GetCommandName() << " " << usage << std::endl; |
| 68 | } |
| 69 | |
| 70 | std::cout << std::endl; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | private: |
| 75 | std::vector<std::shared_ptr<CommandInterface>> _commands; |
nothing calls this directly
no test coverage detected