MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / create_command_with_args

Method create_command_with_args

OpenHD/ohd_common/src/openhd_util.cpp:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229std::string OHDUtil::create_command_with_args(
230 const std::string& command, const std::vector<std::string>& args) {
231 std::stringstream ss;
232 ss << command;
233 for (const auto& arg : args) {
234 ss << " " << arg;
235 }
236 return ss.str();
237}
238
239bool OHDUtil::check_root(const bool print_debug) {
240 const auto uid = getuid();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected