--raw does not accept piped json

Piping some output to icinga-cli does unfortunately not work echo '{"attrs": {"address": "example.com","check_command": "http","vars.foo": "bar","vars.os": "linux"}}' | go run icinga.go -a fbein.de --skip-tls -v --dry-run -r

  • Check stdin when --rawor -r is set