mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
merged executeAndPrintShellCommand to runProgram
This commit is contained in:
parent
729933062b
commit
b9fe3f00c1
5 changed files with 47 additions and 73 deletions
|
|
@ -268,7 +268,7 @@ Strings unpackStrings(const string & s);
|
|||
Strings tokenizeString(const string & s, const string & separators = " \t\n\r");
|
||||
|
||||
/* String tokenizer for commandline agruments. */
|
||||
Strings tokenizeStringWithQuotes(const string & s);
|
||||
//Strings tokenizeStringWithQuotes(const string & s); //TODO maybe remove the function
|
||||
|
||||
/* Convert the exit status of a child as returned by wait() into an
|
||||
error string. */
|
||||
|
|
@ -293,10 +293,10 @@ string trimr(const string & s);
|
|||
string trim(const string & s);
|
||||
|
||||
//excecute a shell command
|
||||
void executeAndPrintShellCommand(const string & command, const string & commandName, const bool & captureOutput);
|
||||
void executeShellCommand(const string & command);
|
||||
|
||||
//
|
||||
string runProgram_AndPrintOutput(Path program, bool searchPath, const Strings & args, const string outputPrefix);
|
||||
void runProgram_AndPrintOutput(Path program, bool searchPath, const Strings & args, const string outputPrefix);
|
||||
|
||||
//Convert time_t to a string
|
||||
string time_t2string(const time_t & t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue