command
Version:
v0.0.0-...-f9b4428
Opens a new window with list of versions in this module.
Published: Feb 17, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Hook
Hook echoes stdin
to a Slack WebHook.
Usage
# Slack: [FANCY PREFIX] hi
echo "hi" | hook -m '[FANCY PREFIX]'
Installation
$ go get -u github.com/leesoh/hacks/hook
You'll also need to set up an incoming WebHook for Slack and either export that as an environment variable or store it in a bit of JSON.
# JSON
$ mkdir -p ~/.config/hook
$ ln -s $GOPATH/src/github.com/leesoh/hacks/hook/hook.json ~/.config/hook/
# ENV
$ export SLACK_HOOK=https://hooks.slack.com/services/<YOUR_INFO_HERE>
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.