2016-02-23 00:27:01 -05:00
|
|
|
# slackcat
|
|
|
|
|
|
|
|
> Utility for passing files and command output to Slack.
|
2025-04-25 05:54:18 +03:00
|
|
|
> More information: <https://github.com/bcicen/slackcat#usage>.
|
2016-02-23 00:27:01 -05:00
|
|
|
|
|
|
|
- Post a file to Slack:
|
|
|
|
|
2025-04-25 05:54:18 +03:00
|
|
|
`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:
|
|
|
|
|
2025-04-25 05:54:18 +03:00
|
|
|
`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:
|
|
|
|
|
2025-04-25 05:54:18 +03:00
|
|
|
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-n|--filename]}} {{snippet_name}}`
|
2016-02-23 00:27:01 -05:00
|
|
|
|
|
|
|
- Stream command output to Slack continuously:
|
|
|
|
|
2025-04-25 05:54:18 +03:00
|
|
|
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-s|--stream]}}`
|