tldr/pages/common/slackcat.md

21 lines
570 B
Markdown
Raw Normal View History

2016-02-23 05:27:01 +00:00
# slackcat
> Utility for passing files and command output to Slack.
2019-05-15 09:09:14 +01:00
> Homepage: <https://github.com/bcicen/slackcat>.
2016-02-23 05:27:01 +00:00
- 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`