Files
nixos/local/pkgs/hpcstat/include/hpcstat/env.hpp

12 lines
278 B
C++

# pragma once
# include <hpcstat/common.hpp>
namespace hpcstat::env
{
// check if the program is running in an interactive shell
bool interactive();
// get the value of an environment variable
std::optional<std::string> env(std::string name, bool required = false);
}