hook

command
v0.0.0-...-f9b4428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL