(f, process, shell, *args, **kwargs)
| 328 | ## Get the output of a tree (with setting envs, pre_code and/er expr_code) |
| 329 | @process_task |
| 330 | def get_output(f, process, shell, *args, **kwargs): |
| 331 | with capture_output() as out: |
| 332 | res = f(*args, process=process, shell=shell, **kwargs) |
| 333 | |
| 334 | out_str = out[0].strip() |
| 335 | if not isinstance(res, Exception): |
| 336 | toret = out_str or "no printouts" |
| 337 | return toret, toret |
| 338 | else: |
| 339 | return res, str(res) |
| 340 | |
| 341 | |
| 342 | @process_task |
nothing calls this directly
no test coverage detected