Version 0.0.2 added the variable env in json.
This commit is contained in:
parent
cc12b4765c
commit
709b7fd7ca
1 changed files with 61 additions and 8 deletions
|
|
@ -28,6 +28,7 @@ public:
|
|||
std::deque<std::string> args;
|
||||
std::string working_dir;
|
||||
string_map after;
|
||||
string_map env;
|
||||
std::string run_mode;
|
||||
bool create_log = false;
|
||||
void printInfo(std::ostream &out);
|
||||
|
|
@ -41,6 +42,7 @@ private:
|
|||
std::deque<std::string> args;
|
||||
std::string working_dir;
|
||||
string_map after;
|
||||
string_map env;
|
||||
bool create_log = false;
|
||||
std::unordered_map<std::shared_ptr<AppInfo>, State> parents;
|
||||
std::atomic<State> state{State::initial};
|
||||
|
|
@ -51,6 +53,7 @@ public:
|
|||
void setArgs(std::deque<std::string> args);
|
||||
void setWorkingDir(std::string working_dir);
|
||||
void setAfter(string_map after);
|
||||
void setEnv(string_map env);
|
||||
void setCreateLog(bool create_log);
|
||||
void setRunMode(std::string mode);
|
||||
void setFinished();
|
||||
|
|
@ -61,6 +64,7 @@ public:
|
|||
std::string getProgramName() const;
|
||||
std::deque<std::string> getArgs() const;
|
||||
std::string getWorkingDir() const;
|
||||
string_map getEnv() const;
|
||||
string_map getAfter() const;
|
||||
std::string getAfterString() const;
|
||||
std::string getAfterKeys() const;
|
||||
|
|
|
|||
Loading…
Reference in a new issue