MCPcopy Create free account
hub / github.com/daniele77/cli / ScanCmds

Method ScanCmds

include/cli/cli.h:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

FeedMethod · 0.80

Calls 2

ExecParentMethod · 0.80
ExecMethod · 0.45

Tested by

no test coverage detected