NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
system.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
13#include <optional>
14#include <string>
15
16namespace notex::system {
17
33std::string run_command(const std::string& command);
34
40std::optional<std::string> get_env(const std::string& name);
41
42} // namespace notex::system
std::optional< std::string > get_env(const std::string &name)
Reads an environment variable.
Definition system.cpp:52
std::string run_command(const std::string &command)
Runs command through the shell and returns everything it wrote to standard output (and standard error...
Definition system.cpp:19