MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / pipeline

Function pipeline

cpp-subprocess/subprocess.hpp:2255–2262  ·  view source on GitHub ↗

Args expected to be flat commands using string instead of initializer_list

Source from the content-addressed store, hash-verified

2253template<typename... Args>
2254// Args expected to be flat commands using string instead of initializer_list
2255OutBuffer 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

Callers 1

test_easy_pipingFunction · 0.85

Calls 3

pipeline_implFunction · 0.85
start_processMethod · 0.80
communicateMethod · 0.45

Tested by 1

test_easy_pipingFunction · 0.68