Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 346 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 346 Bytes

exec2json

exec2json /bin/bash -c 'echo this is my stdout; echo that is my stderr 1>&2' | jq

Outputs:

{
  "command": [
    "/bin/bash",
    "-c",
    "echo this is my stdout; echo that is my stderr 1>&2"
  ],
  "status": 0,
  "stderr": "that is my stderr\n",
  "stdout": "this is my stdout\n",
  "took": 0.004179875
}