hisener / slap

Pipes command line output to Slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slap

Pipes command line output to Slack

Usage

ls -la | slap #general
echo "message from cli" | slap @halil.ibrahim

Screenshot

Install

You need a legacy token which can be issued here.

Then, you need to set an environment variable using this token.

echo "export SLACK_LEGACY_TOKEN=your-token" >> ~/.bash_profile
source ~/.bash_profile

Finally, download the script into /usr/local/bin using following command.

wget https://raw.githubusercontent.com/hisener/slap/master/slap -P /usr/local/bin && chmod +x /usr/local/bin/slap

Uninstall

Simply remove the script file and remove export statement from your .bash_profile.

Licence

MIT. Copyright (C) Halil İbrahim Şener.

About

Pipes command line output to Slack

License:MIT License


Languages

Language:Shell 100.0%