slackecho

command module
v0.0.0-...-c353bda Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

slackecho

This project is no longer maintained.

Slackecho is a simple commandline utility to post messages to Slack.

It is forked from, and designed to complement, Slackcat.

Configuration

If you already use Slackcat, you're already configured. If not, download Slackcat and follow the instructions. Your new config file will work for Slackcat and Slackecho.

For configuring multiple teams and default channels, see Slackcat's Configuration Guide.

Usage

Echo a string as a message:

$ slackecho --channel general Good morning!
*slackecho* posted 1 message lines to general

Pipe command output as a message:

$ echo -e "hi\nthere" | slackecho --channel general
*slackecho* posted 2 message lines to general

Post a message as preformatted text:

$ echo -e "print('Hello world!')" | slackecho --pre --channel general
*slackecho* posted 1 message lines to general

Stream input continously as preformatted text:

$ tail -F -n0 /path/to/log | slackecho --channel general --stream --pre
*slackecho* posted 5 message lines to general
*slackecho* posted 2 message lines to general
...

Options

Option Description
--tee, -t Print stdin to screen before posting
--stream, -s Stream messages to Slack continuously
--pre, -p Write messages as preformatted text
--noop Skip posting message to Slack. Useful for testing
--channel, -c Slack channel, group, or user to post to

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
⌂ 换网址