Skip to content

humweb/slackpipe

Repository files navigation

SlackPipe (CLI)

SlackPipe is a php cli program to pipe or upload data to various services.

Supported providers:

  • Slack
  • Jira

Slack provider

Slack chat provider usage.

slack:post

Command signature

./slackpipe slack:post [-k|--key [KEY]] [-cfg|--config] [-c|--channel CHANNEL] [-u|--user [USER]]

Pipe text to slack channel

echo "Nothing to say here." | ./slackpipe post

slack:upload

Command signature

./slackpipe slack:upload [-k|--key [KEY]] [-cfg|--config] [-c|--channel CHANNEL] [-f|--file [FILE]] [--filename [FILENAME]] [-t|--type [TYPE]] [--title [TITLE]]

Upload a file to slack channel

./slackpipe slack:upload -f snippet.php

Pipe data as file attachment to slack channel

echo "Nothing to say here." | ./slackpipe slack:upload

You can even specify a filename

echo "Nothing to say here." | ./slackpipe slack:upload --filename example.txt

Jira issues provider

Jira provider usage.

jira:post

Command signature

./slackpipe jira:post <issue>

Pipe ls output to comment

ls | ./slackpipe jira:post -t SLAC-1

jira:upload

Command signature

./slackpipe jira:upload [-f|--file [FILE]] [--filename [FILENAME]] [-t|--type [TYPE]] <issue>

Upload file

./slackpipe jira:upload -f run.php SLAC-1

Pipe ls output to file as file (default type: .txt)

ls | ./slackpipe jira:upload -t sh SLAC-1

Pipe ls output to file. (specify file type with option: -t)

ls | ./slackpipe jira:upload -t sh SLAC-1

Build

In my situation I used:

 php -d phar.readonly=off box.phar build

About

SlackPipe is a php cli program to pipe or upload data to various services (slack and jira for now).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages