MCPcopy Create free account
hub / github.com/KDE/kdevelop / executeCommandSync

Method executeCommandSync

plugins/externalscript/externalscriptplugin.cpp:304–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304QString ExternalScriptPlugin::executeCommandSync(const QString& command, const QString& workingDirectory) const
305{
306 qCDebug(PLUGIN_EXTERNALSCRIPT) << "executing command " << command << " in working-dir " << workingDirectory;
307 KProcess process;
308 process.setWorkingDirectory(workingDirectory);
309 process.setShellCommand(command);
310 process.setOutputChannelMode(KProcess::OnlyStdoutChannel);
311 process.execute();
312 return QString::fromLocal8Bit(process.readAll());
313}
314
315void ExternalScriptPlugin::executeScriptFromActionData() const
316{

Callers

nothing calls this directly

Calls 2

setWorkingDirectoryMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected