exec2json

command module
v0.0.0-...-23ab8fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

README

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
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL