From 741014ffcdbf895102b1fbc07aadfebefb362577 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Tue, 23 Feb 2016 00:27:01 -0500 Subject: [PATCH] slackcat: add page --- pages/common/slackcat.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/slackcat.md diff --git a/pages/common/slackcat.md b/pages/common/slackcat.md new file mode 100644 index 000000000..868261ad4 --- /dev/null +++ b/pages/common/slackcat.md @@ -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`