diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-10 01:10:48 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-10 01:12:08 +0100 |
commit | 1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (patch) | |
tree | fdb38039d12cf38e9ac6102118727b78437cf3db /include/Exec.hpp | |
parent | 2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (diff) |
Add support for dependencies in global lib dir
Global lib dir is located at ~/.sibs/lib
TODO: If global lib dir doesn't exist, download it from github/server
Diffstat (limited to 'include/Exec.hpp')
-rw-r--r-- | include/Exec.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/Exec.hpp b/include/Exec.hpp new file mode 100644 index 0000000..42b6905 --- /dev/null +++ b/include/Exec.hpp @@ -0,0 +1,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 |