|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <map>#include <optional>#include <string>Go to the source code of this file.
Functions | |
| std::optional< std::string > | nix::getEnv (const std::string &key) |
| std::optional< std::string > | nix::getEnvNonEmpty (const std::string &key) |
| std::map< std::string, std::string > | nix::getEnv () |
| void | nix::clearEnv () |
| void | nix::replaceEnv (const std::map< std::string, std::string > &newEnv) |
Utilities for working with the current process's environment variables.
| void nix::clearEnv | ( | ) |
Clear the environment.
| std::map< std::string, std::string > nix::getEnv | ( | ) |
Get the entire environment.
| std::optional< std::string > nix::getEnv | ( | const std::string & | key | ) |
| std::optional< std::string > nix::getEnvNonEmpty | ( | const std::string & | key | ) |
| void nix::replaceEnv | ( | const std::map< std::string, std::string > & | newEnv | ) |
Replace the entire environment with the given one.