1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-26 01:55:34 +02:00
tldr/pages/common/slackcat.md

21 lines
647 B
Markdown
Raw Normal View History

2016-02-23 00:27:01 -05:00
# slackcat
> Utility for passing files and command output to Slack.
> More information: <https://github.com/bcicen/slackcat#usage>.
2016-02-23 00:27:01 -05:00
- Post a file to Slack:
`slackcat {{[-c|--channel]}} {{channel_name}} {{path/to/file}}`
2016-02-23 00:27:01 -05:00
- Post a file to Slack with a custom filename:
`slackcat {{[-c|--channel]}} {{channel_name}} {{[-n|--filename]}} {{filename}} {{path/to/file}}`
2016-02-23 00:27:01 -05:00
- Pipe command output to Slack as a text snippet:
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-n|--filename]}} {{snippet_name}}`
2016-02-23 00:27:01 -05:00
- Stream command output to Slack continuously:
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-s|--stream]}}`