aboutsummaryrefslogtreecommitdiff
path: root/include/Exec.hpp
blob: 42b690557bb78fceae74ad98280e9b7fd46a681f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef SIBS_EXEC_HPP
#define SIBS_EXEC_HPP

#include "Result.hpp"
#include <string>

namespace sibs
{
    struct ExecResult
    {
        std::string execStdout;
        int exitCode;
    };

    Result<ExecResult> exec(const char *cmd, bool print = false);
}

#endif //SIBS_EXEC_HPP