userver: engine::subprocess::ExecOptions Struct Reference
Loading...
Searching...
No Matches
engine::subprocess::ExecOptions Struct Referencefinal

#include <userver/engine/subprocess/process_starter.hpp>

Detailed Description

Structure of settings for executing commands in the OS.

Definition at line 23 of file process_starter.hpp.

Public Attributes

std::optional< EnvironmentVariablesenv {}
 
std::optional< EnvironmentVariablesUpdateenv_update {}
 
std::optional< std::string > stdout_file {}
 
std::optional< std::string > stderr_file {}
 
bool use_path {false}
 

Member Data Documentation

◆ env

std::optional<EnvironmentVariables> engine::subprocess::ExecOptions::env {}

EnvironmentVariables for the environment in execution, or std::nullopt to use GetCurrentEnvironmentVariables()

Definition at line 26 of file process_starter.hpp.

◆ env_update

std::optional<EnvironmentVariablesUpdate> engine::subprocess::ExecOptions::env_update {}

EnvironmentVariablesUpdate for the update environment before execution, or std::nullopt to leave env as is

Definition at line 29 of file process_starter.hpp.

◆ stderr_file

std::optional<std::string> engine::subprocess::ExecOptions::stderr_file {}

File path to be redirected stderr, or std::nullopt to use the service's stderr

Definition at line 35 of file process_starter.hpp.

◆ stdout_file

std::optional<std::string> engine::subprocess::ExecOptions::stdout_file {}

File path to be redirected stdout, or std::nullopt to use the service's stdout

Definition at line 32 of file process_starter.hpp.

◆ use_path

bool engine::subprocess::ExecOptions::use_path {false}

If false, command is treated as absolute path or a relative path. If true, and command does not contain /, and PATH in environment variables, then it will be searched in the colon-separated list of directory pathnames specified in the PATH environment variable. If true, and command contains /, command is treated as absolute path or a relative path.

Definition at line 42 of file process_starter.hpp.


The documentation for this struct was generated from the following file: