src/sakura_root.cpp
/**
 * @brief execute a cli-command
 *
 * @param command cli-command to execute
 * @param errorMessage reference for error-message
 *
 * @return true, if successful, else false
 */
@brief execute a cli-command
@param command cli-command to execute
@param errorMessage reference for error-message

@return true, if successful, else false
@brief execute a cli - command @param command cli - command to execute @param errorMessage reference for error - message @return true if successful else false
bool
SakuraRoot::runCommand(const std::string &command,
                       std::string &errorMessage)
{
    LOG_DEBUG("run command: " + command);
    Kitsunemimi::ProcessResult processResult = Kitsunemimi::runSyncProcess(command);
    if(processResult.success == false)
    {
        errorMessage = processResult.processOutput;
        return false;
    }
    return true;
}
bool SakuraRoot :: runCommand ( const std :: string & command , std :: string & errorMessage ) { LOG_DEBUG ( " " + command ) ; Kitsunemimi :: ProcessResult processResult = Kitsunemimi :: runSyncProcess ( command ) ; if ( processResult . success == false ) { errorMessage = processResult . processOutput ; return false ; } return true ; }
@brief execute a cli-command
 @param command cli-command to execute
 @param errorMessage reference for error-message
@brief execute a cli - command @param command cli - command to execute @param errorMessage reference for error - message
// run command