MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / isCommandAllowed

Method isCommandAllowed

tools/ExecuteTerminalCommandTool.cpp:369–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369bool ExecuteTerminalCommandTool::isCommandAllowed(const QString &command) const
370{
371 const QStringList allowed = getAllowedCommands();
372 return allowed.contains(command, Qt::CaseInsensitive);
373}
374
375bool ExecuteTerminalCommandTool::isCommandSafe(const QString &command) const
376{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected