Files
tldr/pages.zh/common/slackcat.md

20 lines
593 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# slackcat
> 用于将文件和命令输出传递到 Slack 的工具。
> 更多信息:<https://github.com/bcicen/slackcat>.
- 将文件发送到 Slack
`slackcat --channel {{channel_name}} {{path/to/file}}`
- 以自定义文件名将文件发送到 Slack
`slackcat --channel {{channel_name}} --filename={{filename}} {{path/to/file}}`
- 将命令输出作为文本片段发送到 Slack
`{{command}} | slackcat --channel {{channel_name}} --filename={{snippet_name}}`
- 持续将命令输出流式传输到 Slack
`{{command}} | slackcat --channel {{channel_name}} --stream`