8# define MIM_WHICH "where"
10# define MIM_WHICH "which"
15namespace fs = std::filesystem;
23std::string
exec(std::string cmd);
31int run(std::string cmd, std::string args = {});
int run(std::string cmd, std::string args={})
Wraps sys::system and puts .exe at the back (Windows) and ./ at the front (otherwise) of cmd.
int system(std::string)
Wraps std::system and makes the return value usable.
std::optional< fs::path > path_to_curr_exe()
Yields std::nullopt if an error occurred.
std::string find_cmd(std::string)
std::string exec(std::string cmd)
Executes command cmd.