1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 22:55:44 +02:00

slackcat: add page

This commit is contained in:
Hayden Schiff 2016-02-23 00:27:01 -05:00
parent e46376a0ca
commit 741014ffcd

19
pages/common/slackcat.md Normal file
View file

@ -0,0 +1,19 @@
# slackcat
> Utility for passing files and command output to Slack.
- Post a file to Slack:
`slackcat --channel {{channel_name}} {{path/to/file}}`
- Post a file to Slack with a custom filename:
`slackcat --channel {{channel_name}} --filename={{filename}} {{path/to/file}}`
- Pipe command output to Slack as a text snippet:
`{{command}} | slackcat --channel {{channel_name}} --filename={{snippet_name}}`
- Stream command output to Slack continuously:
`{{command}} | slackcat --channel {{channel_name}} --stream`