|
stc
|
#include <filesystem>#include <optional>#include <stdexcept>#include <string>#include <cstdlib>#include <regex>#include <array>#include <cstdio>#include <iostream>#include <unistd.h>#include <sys/types.h>#include <pwd.h>#include <sys/wait.h>Go to the source code of this file.
Namespaces | |
| namespace | stc |
Enumerations | |
| enum class | stc::StreamType { stc::STDOUT , stc::STDERR , stc::OTHER } |
Functions | |
| void | stc::setEnv (const char *name, const char *value, bool replace=true) |
| std::string | stc::getEnv (const char *name, const std::string &fail="") |
| std::filesystem::path | stc::expandUserPath (const std::string &inputPath) |
| std::filesystem::path | stc::getHome () |
| std::string | stc::syscommand (const std::string &command, int *codeOutput=nullptr) |
| std::string | stc::syscommand (std::vector< const char * > command, int *codeOutput=nullptr) |
| void | stc::syscommandNoCapture (std::vector< const char * > command, int *codeOutput=nullptr) |
| std::optional< std::string > | stc::getHostname () |
| bool | stc::isStreamTTY (StreamType type=StreamType::STDOUT) |
| std::string | stc::executablePath () |
| template<typename CharT > | |
| static constexpr StreamType | stc::getOutputStreamType (std::basic_ostream< CharT > &ss) |
| template<typename CharT > | |
| bool | stc::isCppStreamTTY (std::basic_ostream< CharT > &ss) |