Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.53 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.53 KB

Go Report Card

Simple code written in go, to push messages to slack channel.


Current version: 0.2.0
Download links:


Help and usage:

NAME:
   Slack Push Message - Enjoy sending messages through the terminal

USAGE:
   slack-cli [global options] [arguments...]

VERSION:
   0.2.0

AUTHOR:
   Boris Bakshiyev

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --message message, -m message     The message to be sent
   --webhook webhook, -w webhook     The slack webhook
   --username username, -u username  The username which will be shown as the sender
   --channel channel, -c channel     The channel to send the message too
   --help, -h                        show help
   --version, -v                     print the version

Example:

  ./slack --channel "test_channel" \
    --webhook "https://hooks.slack.com/services/JUSTEXAMPLE/WEBHOOK/ABcdER5" \
    --username "test_bot" \
    --message "Test message \n New line with <https://github.com/berkil|url>" \
    --emoji ":ant:"