slack-paste

Crates.ioslack-paste
lib.rsslack-paste
version0.1.0
sourcesrc
created_at2020-09-27 21:37:16.968333
updated_at2020-09-27 21:37:16.968333
descriptionPaste stdin to slack
homepage
repositoryhttps://github.com/briprowe/slack-paste
max_upload_size
id293532
size43,589
Brian Rowe (briprowe)

documentation

README

slack-paste

Paste stdin to slack.

Initial Setup

You can use cargo to install slack-paste:

cargo install slack-paste

After slack-paste is installed you have to configure it to work with your slack workspace. To do so, either use an oauth token for an existing bot in your workspace, or create a new bot.

Navigate to [https://api.slack.com/apps/] and create a new app.

Once you have an oauth access token with the chat:write scope, you can configure slack-paste to use it with the following command.

slack-paste init

Usage

cat my-file.rs | slack-paste @coworker
Commit count: 3

cargo fmt