mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
commit
843ca49ad3
1 changed files with 19 additions and 0 deletions
19
pages/common/slackcat.md
Normal file
19
pages/common/slackcat.md
Normal 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`
|
Loading…
Add table
Reference in a new issue