MCPcopy Create free account
hub / github.com/cvengler/sysget / checkcmd

Method checkcmd

src/utils.cpp:58–65  ·  view source on GitHub ↗

Check will check if the string contains an exit message

Source from the content-addressed store, hash-verified

56
57// Check will check if the string contains an exit message
58void sysget::checkcmd(std::string cmd) {
59 size_t errorfind = cmd.find("exit=");
60 if(errorfind != std::string::npos) {
61 std::string errormsg = cmd.substr(5);
62 std::cerr << errormsg << std::endl;
63 exit(1);
64 }
65}
66
67// Allows user to change the syntax of sysget
68std::vector<std::string> sysget::CustomArgs(std::string path) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected