All Projects → bcicen → Slackcat

bcicen / Slackcat

Licence: mit
CLI utility to post files and command output to slack

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Slackcat

Starcli
✨ Browse GitHub trending projects from your command line
Stars: ✭ 269 (-76.13%)
Mutual labels:  commandline, cli
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-69.39%)
Mutual labels:  commandline, cli
Croissant
🥐 A Lua REPL and debugger
Stars: ✭ 285 (-74.71%)
Mutual labels:  commandline, cli
Ace
Node.js framework for creating command line applications
Stars: ✭ 233 (-79.33%)
Mutual labels:  commandline, cli
Fontpreview
Highly customizable and minimal font previewer written in bash
Stars: ✭ 661 (-41.35%)
Mutual labels:  commandline, cli
Slack Theme Cli
A CLI tool for changing Slack's desktop app colors
Stars: ✭ 256 (-77.28%)
Mutual labels:  cli, slack
Imag
imag - Text based personal information management suite
Stars: ✭ 318 (-71.78%)
Mutual labels:  commandline, cli
Gitin
commit/branch/workdir explorer for git
Stars: ✭ 1,815 (+61.05%)
Mutual labels:  commandline, cli
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (-52.8%)
Mutual labels:  commandline, cli
Yeetgif
gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang
Stars: ✭ 467 (-58.56%)
Mutual labels:  cli, slack
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (-80.12%)
Mutual labels:  commandline, cli
Gitviper
Enhanced git experience using the command line
Stars: ✭ 35 (-96.89%)
Mutual labels:  commandline, cli
You Dont Need Gui
Stop relying on GUI; CLI **ROCKS**
Stars: ✭ 4,766 (+322.89%)
Mutual labels:  commandline, cli
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+191.57%)
Mutual labels:  commandline, cli
Licenseplist
A license list generator of all your dependencies for iOS applications
Stars: ✭ 1,996 (+77.11%)
Mutual labels:  commandline, cli
Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+1458.65%)
Mutual labels:  commandline, cli
Appicon
AppIcon generates *.appiconset contains each resolution image for iOS
Stars: ✭ 1,454 (+29.02%)
Mutual labels:  commandline, cli
Brotab
Control your browser's tabs from the command line
Stars: ✭ 137 (-87.84%)
Mutual labels:  commandline, cli
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+2068.32%)
Mutual labels:  commandline, cli
Clipp
easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation
Stars: ✭ 687 (-39.04%)
Mutual labels:  commandline, cli

slackcat

Slackcat is a simple commandline utility to post snippets to Slack.

slackcat

Installing

Download the latest release for your platform:

curl -Lo slackcat https://github.com/bcicen/slackcat/releases/download/v1.7.1/slackcat-1.7.1-$(uname -s)-amd64
sudo mv slackcat /usr/local/bin/
sudo chmod +x /usr/local/bin/slackcat

slackcat is also available via homebrew:

brew install slackcat

Building

To optionally build slackcat from source, ensure you have dep installed and run:

go get github.com/bcicen/slackcat && \
cd $GOPATH/src/github.com/bcicen/slackcat && \
make build

You must use GNU make for the build to work correctly. If your platform does not install GNU make as make (i.e. OpenBSD) then you will need to install gmake and run:

go get github.com/bcicen/slackcat && \
cd $GOPATH/src/github.com/bcicen/slackcat && \
gmake build

Configuration

Generate an initial config, or add a new team token with:

slackcat --configure

You'll be prompted for a team nickname and a new browser window will be opened for you to confirm the request via Slack. Provide the returned token to slackcat when prompted, and you're ready to go!

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

Usage

Pipe command output as a text snippet:

$ echo -e "hi\nthere" | slackcat --channel general --filename hello
*slackcat* file hello uploaded to general

Post an existing file:

$ slackcat --channel general /home/user/bot.png
*slackcat* file bot.png uploaded to general

Stream input continuously:

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

Options

Option Description
--tee, -t Print stdin to screen before posting
--stream, -s Stream messages to Slack continuously instead of uploading a single snippet
--noop Skip posting file to Slack. Useful for testing
--configure Configure Slackcat via oauth
--iconemoji, -i Specify emoji icon for message (e.g. "👍")
--channel, -c Slack channel, group, or user to post to
--filename, -n Filename for upload. Defaults to given filename or current timestamp if reading from stdin
--filetype Specify filetype for syntax highlighting. Defaults to autodetect
--comment Initial comment for snippet
--username Stream messages as given bot user. Defaults to auth user
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].