mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Add option isInteractive
This commit is contained in:
parent
25434df0d9
commit
4c4ae887b8
3 changed files with 21 additions and 17 deletions
|
@ -415,7 +415,7 @@ pid_t startProcess(std::function<void()> fun, const ProcessOptions & options = P
|
|||
*/
|
||||
std::string runProgram(Path program, bool searchPath = false,
|
||||
const Strings & args = Strings(),
|
||||
const std::optional<std::string> & input = {});
|
||||
const std::optional<std::string> & input = {}, bool isInteractive = false);
|
||||
|
||||
struct RunOptions
|
||||
{
|
||||
|
@ -430,6 +430,7 @@ struct RunOptions
|
|||
Source * standardIn = nullptr;
|
||||
Sink * standardOut = nullptr;
|
||||
bool mergeStderrToStdout = false;
|
||||
bool isInteractive = false;
|
||||
};
|
||||
|
||||
std::pair<int, std::string> runProgram(RunOptions && options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue