{% if args is string %}
{% set parts = [args] %}
{% else %}
{% set parts = args %}
{% endif %}
{% set cli_line = binary_path ~ ' ' ~ parts | map('tojson') | join(' ') %}
{{ cli_line }}
{% endif %}
{% if completed and completed.stdout %}
Stdout
{{ completed.stdout }}
{% endif %}
{% if completed and completed.stderr %}
Stderr
{{ completed.stderr }}
{% endif %}
{% if failed and failed.stderr %}
Stderr
{{ failed.stderr }}
{% endif %}
Event Timeline
{% for e in events %}
{{ e.event }}
{% if e.exit_code is not none %}
exit={{ e.exit_code }}
{% endif %}
{% if e.duration is not none %}
{{ "%.3f"|format(e.duration) }}s
{% endif %}