MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / RunCommand

Method RunCommand

common/src/shell/Shell.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53ShellCmdResult Shell::RunCommand(const std::string &cmd) {
54 /*boost::process::child proc(boost::process::search_path("osascript"), ToDo
55 std::vector<std::string> {"-e", "do shell script \"echo test\" with administrator privileges"},
56 boost::process::std_out > outStream);*/
57 return RunUserCommand(cmd);
58}
59
60ShellCmdResult Shell::RunUserCommand(const std::string &cmd) {
61#ifdef WINDOWS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected