Skip to content

netMedi/flowdocktee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flowdocktee

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

Requirements

Flowdocktee needs curl to communicate with Flowdock.

Installation

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.

Configuration

  • 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 the flow belongs.

Usage

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.

About

tee-like command to output standard input to flowdock

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages