mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 14:58:17 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# slackcat
|
||||
|
||||
> Utility for passing files and command output to Slack.
|
||||
> More information: <https://github.com/bcicen/slackcat>.
|
||||
> More information: <https://github.com/bcicen/slackcat#usage>.
|
||||
|
||||
- Post a file to Slack:
|
||||
|
||||
`slackcat --channel {{channel_name}} {{path/to/file}}`
|
||||
`slackcat {{[-c|--channel]}} {{channel_name}} {{path/to/file}}`
|
||||
|
||||
- Post a file to Slack with a custom filename:
|
||||
|
||||
`slackcat --channel {{channel_name}} --filename={{filename}} {{path/to/file}}`
|
||||
`slackcat {{[-c|--channel]}} {{channel_name}} {{[-n|--filename]}} {{filename}} {{path/to/file}}`
|
||||
|
||||
- Pipe command output to Slack as a text snippet:
|
||||
|
||||
`{{command}} | slackcat --channel {{channel_name}} --filename={{snippet_name}}`
|
||||
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-n|--filename]}} {{snippet_name}}`
|
||||
|
||||
- Stream command output to Slack continuously:
|
||||
|
||||
`{{command}} | slackcat --channel {{channel_name}} --stream`
|
||||
`{{command}} | slackcat {{[-c|--channel]}} {{channel_name}} {{[-s|--stream]}}`
|
||||
|
||||
Reference in New Issue
Block a user