def chain(cmd_list):
command = '<STR_LIT>'.join(map(lambda x: '<STR_LIT:U+0020>'.join(x), cmd_list))<EOL>chained_proc = functools.reduce(pipe, [None] + cmd_list)<EOL>stdout_builder = proc.async_stdout_builder(chained_proc)<EOL>chained_proc.wait()<EOL>return {<EOL>'<STR_LIT>': command,<EOL>'<STR_LIT>': stdout_builder.result()<EOL>}<EOL>
Feed output of one command to the next and return final output
Returns string output of chained application of commands.