tee to hipchat
Tee mode is activated when the tool is invoked without extra arguments. In this mode, the standard input if forwarded to the hipchat room as grey non-alerting messages, followed by a green "Done" notification (also non-alerting).
$ echo Hello, World! | hiptee
Hello, World!
The stdin is also echoed to the stdout of the hiptee.
Exec mode is activated when a command to execute is specified:
hiptee echo exec mode!
exec mode!
the standard output of the command is treated the same way as the standard input in the tee mode: it is echoed to both standard output of the tool and sent as a grey non-alerting notification to hipchat. Standard error is shown as red alerts in the hipchat. Green non-alerting "Done" notification is sent to hipchat upon completion.
when exec mode has "poll" specified, the tool will be polling the target hipchat room for the messages starting with this prefix and send them to the standard input of the command executed.
Download from github release page or see .travis.yml
for instructions to build (golang)
hipchat token and room can be specified either via command line parameters, HIPTEE_TOKEN
and HIPTEE_ROOM
environmental
variables or specified in a hiptee.yaml file of a following structure:
hipchat:
token: tokentokentoken
room: 999999