| 60 | } |
| 61 | |
| 62 | std::string string_value_of(const char* name, std::string fallback) |
| 63 | { |
| 64 | auto e = env(name); |
| 65 | if(e.empty()) |
| 66 | return fallback; |
| 67 | auto rv = e.front(); |
| 68 | access_envs()([&](auto& m) { m[name] = rv; }); |
| 69 | return rv; |
| 70 | } |
| 71 | |
| 72 | std::vector<std::string> env(const char* name) |
| 73 | { |
no test coverage detected