An open API service indexing awesome lists of open source software.

https://github.com/influxdata/catslack

Shell -> Slack the easy way
https://github.com/influxdata/catslack

Last synced: 3 months ago
JSON representation

Shell -> Slack the easy way

Awesome Lists containing this project

README

          

# CatSlack

Inspired by [SlackCat](https://github.com/rlister/slackcat) but rewritten in Go for easy portability.

This is a command line utility to post `stdin` to a configured [Incoming Webhook](https://api.slack.com/incoming-webhooks) on your slack channel. To use it have a script that outputs something useful to `stdin`. Maybe something like `myCoolScript.sh`...

```sh
$ cat myCoolScript.sh
#!/bin/bash
echo "I'm going to be posted in Slack!"

# Set your Slack Incoming Webhook URL:
$ export URL="https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"

# Experience pleasure by using the catslack!
$ ./myCoolTestScript.sh | catslack
```