Crates.io | slack-paste |
lib.rs | slack-paste |
version | 0.1.0 |
source | src |
created_at | 2020-09-27 21:37:16.968333 |
updated_at | 2020-09-27 21:37:16.968333 |
description | Paste stdin to slack |
homepage | |
repository | https://github.com/briprowe/slack-paste |
max_upload_size | |
id | 293532 |
size | 43,589 |
Paste stdin to slack.
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
cat my-file.rs | slack-paste @coworker