| 339 | fs::path cwd{}; |
| 340 | |
| 341 | std::string get_command() const |
| 342 | { |
| 343 | std::string result; |
| 344 | if(not cwd.empty()) |
| 345 | result += "cd " + cwd.string() + "; "; |
| 346 | if(not envs.empty()) |
| 347 | result += envs + " "; |
| 348 | result += command; |
| 349 | if(not args.empty()) |
| 350 | result += " " + args; |
| 351 | return result; |
| 352 | } |
| 353 | |
| 354 | template <class... Ts> |
| 355 | void check_exec(Ts&&... xs) const |