Args expected to be flat commands using string instead of initializer_list
| 2253 | template<typename... Args> |
| 2254 | // Args expected to be flat commands using string instead of initializer_list |
| 2255 | OutBuffer pipeline(Args&&... args) |
| 2256 | { |
| 2257 | std::vector<Popen> pcmds; |
| 2258 | detail::pipeline_impl(pcmds, std::forward<Args>(args)...); |
| 2259 | |
| 2260 | for (auto& p : pcmds) p.start_process(); |
| 2261 | return (pcmds.back().communicate().first); |
| 2262 | } |
| 2263 | |
| 2264 | } |
| 2265 |