Shopify / shadowenv

reversible directory-local environment variable manipulations
https://shopify.github.io/shadowenv/
MIT License
396 stars 18 forks source link

Add json and pretty-json hook output #49

Closed lavoiesl closed 5 years ago

lavoiesl commented 5 years ago

🎩

$ shadowenv hook --pretty-json ''
{
  "exported": {
    "FOO": "BAZ"
  },
  "unexported": {
    "__shadowenv_data": "f9f54a27c2fb41ba:{\"scalars\":[{\"name\":\"FOO\",\"original\":null,\"current\":\"BAZ\"}],\"lists\":[]}"
  }
}

$ shadowenv hook --json ''
{"exported":{"FOO":"BAZ"},"unexported":{"__shadowenv_data":"f9f54a27c2fb41ba:{\"scalars\":[{\"name\":\"FOO\",\"original\":null,\"current\":\"BAZ\"}],\"lists\":[]}"}}