#slack #paste #cli #stdin #token

app slack-paste

Paste stdin to slack

1 unstable release

0.1.0 Sep 27, 2020

#42 in #paste

Custom license

13KB
110 lines

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

Dependencies

~20–33MB
~602K SLoC