mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
12 lines
278 B
C++
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);
|
|
}
|