MCPcopy Create free account
hub / github.com/Mixaill/FakePDB / Usage

Method Usage

src_cpp/src/main.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

GetCommandNameMethod · 0.45
GetCommandDescriptionMethod · 0.45
GetCommandUsageMethod · 0.45

Tested by

no test coverage detected