| 507 | } |
| 508 | |
| 509 | bool ScanCmds(const std::vector<std::string>& cmdLine, CliSession& session) |
| 510 | { |
| 511 | if (!IsEnabled()) |
| 512 | return false; |
| 513 | for (auto& cmd: *cmds) |
| 514 | if (cmd->Exec(cmdLine, session)) |
| 515 | return true; |
| 516 | assert(!cmdLine.empty()); |
| 517 | return (parent && parent->ExecParent(cmdLine, session)); |
| 518 | } |
| 519 | |
| 520 | std::string Prompt() const |
| 521 | { |
no test coverage detected