Explorar o código

slackcat: add page

Hayden Schiff %!s(int64=9) %!d(string=hai) anos
pai
achega
741014ffcd
Modificáronse 1 ficheiros con 19 adicións e 0 borrados
  1. 19 0
      pages/common/slackcat.md

+ 19 - 0
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`