Flowdocktee is a bash script that works like tee command. It sends the standard input to flowdock instead of writing to files.
Flowdocktee is inspired by wonderful slacktee
Flowdocktee needs curl to communicate with Flowdock.
Clone the git repository
$ git clone https://github.com/netMedi/flowdocktee.git
Install flowdocktee
.
$ chmod -x install.sh
$ ./install.sh
After installation copy the flowdocktee.conf.sample
to $HOME/.flowdocktee
and insert your user's api_token
, flow
, and organization
accordingly,
depending on where you want the messages to be sent.
You can also pass --config
parameter for the command which defines alternative
configuration path.
-
api_token
: Can be found in your api tokens page, this command does not support the flow API tokens as the API is deprecated and the messages endpoint usage is encouraged. -
flow
is the name of the flow you want the messages to be sent to. -
organization
is the name of the organization where theflow
belongs.
usage: flowdocktee [options]
options:
--config Specify the location ot the alternative configuration file.
--notify Set this flag to prepend the chat message with @team
$ echo "Hello world" | flowdocktee
$ ls | flowdocktee | grep ".conf"
In case of misconfiguration or error flowdocktee just fails silently as we want to pipe the input always instead of halting the subsequent commands.