#include "mim/util/sys.h"#include <filesystem>#include <iostream>#include "mim/config.h"#include "mim/util/dbg.h"Go to the source code of this file.
Namespaces | |
| namespace | mim |
| namespace | mim::sys |
Functions | |
| void | mim_lib_anchor () |
| std::optional< fs::path > | mim::sys::path_to_libmim () |
| Yields std::nullopt if an error occurred. | |
| std::string | mim::sys::exec (std::string cmd) |
Executes command cmd. | |
| std::string | mim::sys::find_cmd (std::string) |
| int | mim::sys::system (std::string) |
| Wraps std::system and makes the return value usable. | |
| int | mim::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. | |
| std::string | mim::sys::escape (const std::filesystem::path &path) |
Returns the path as std::string and escapes all whitespaces with backslash. | |
| void mim_lib_anchor | ( | ) |
Definition at line 21 of file sys.cpp.
References MIM_EXPORT.
Referenced by mim::sys::path_to_libmim().