MCPcopy Create free account
hub / github.com/baidu/tera / PrintAllCmd

Function PrintAllCmd

src/admincli.cc:266–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266static void PrintAllCmd() {
267 std::cout << "there is cmd list:" << std::endl;
268 int count = sizeof(builtin_cmd_list) / sizeof(char*);
269 bool newline = false;
270 for (int i = 0; i < count; i += 2) {
271 std::cout << std::setiosflags(std::ios::left) << std::setw(20) << builtin_cmd_list[i];
272 if (newline) {
273 std::cout << std::endl;
274 newline = false;
275 } else {
276 newline = true;
277 }
278 }
279
280 std::cout << std::endl
281 << "help [cmd] for details." << std::endl;
282}
283
284CliStatus HelpOp(Client*, int32_t argc, std::string* argv, ErrorCode*) {
285 if (argc == 2) {

Callers 2

HelpOpFunction · 0.70
PrintUnknownCmdHelpInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected