Thorin 1.9.0
The Higher ORder INtermediate representation
|
#include <filesystem>
#include <optional>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | thorin |
namespace | thorin::sys |
Macros | |
#define | THORIN_WHICH "which" |
Functions | |
std::optional< fs::path > | thorin::sys::path_to_curr_exe () |
Yields std::nullopt if an error occurred. | |
std::string | thorin::sys::exec (std::string cmd) |
Executes command cmd . | |
std::string | thorin::sys::find_cmd (std::string) |
int | thorin::sys::system (std::string) |
Wraps std::system and makes the return value usable. | |
int | thorin::sys::run (std::string cmd, std::string args={}) |
Wraps sys::system and puts .exe at the back (Windows) and ./ at the front (otherwise) of cmd . | |