| 264 | } |
| 265 | |
| 266 | static 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 | |
| 284 | CliStatus HelpOp(Client*, int32_t argc, std::string* argv, ErrorCode*) { |
| 285 | if (argc == 2) { |
no outgoing calls
no test coverage detected