FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Slack CommandBox Commands

v1.0.1 Public

Slack Commands for CommandBox

Send messages to Slack from the Commandbox command line.

Installation

Install into Commandbox with install slack-commandbox-commands.

Basic usage

First, register a webhook with Slack. Then, in CommandBox:

# set global default webhook URL (do this once)
slack set defaults webhook=$webhook_url;

# send messages
box slack message "hello world";

Full list of commands

Append help to each for documentation.

slack send message
slack set defaults
slack show defaults
slack clear defaults

Full list of settable defaults

All defaults set become defaults for arguments that can be passed to slack send message command.

webhook           Default webhook to use when no webhook supplied to slack message command
channel           Default channel for all slack messages (if different from that configured in webhook)
username          Default username for all slack messages (if different from that configured in webhook)
emoji             Default emoji for all slack messages (if different from that configured in webhook)
color             Default highlight color for all slack messages. Can be a hex value, or one of 'good', 'warning' or 'danger'
title             Default title for all slack messages
titleLink         Default title link for all slack messages
pretext           Default pretext that will appear before message attachments
thumbnail         Default thumbnail (URL) that will appear to the right of slack messages
author            Default author name to use with messages
authorLink        Default hyperlink for the author
authorIcon        Default icon (URL) for the author
footer            Default footer text to appear at the bottom of slack messages
footerIcon        Default icon to accompany the message footer
includeTimestamp  Default choice of whether or not to include a timestamp in messages

Changelog

v0.1.0

Module created with ability to send simple message to a slack webhook.

v1.0.1

  • Added options for sending to different channels and using multiple different options for formatting messages.
  • Added a system of setting defaults for all options
  • Added commandline feedback of success/failure of message sending

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.1 Jun 04 2017 05:59 AM Jun 04 2017 05:59 AM
Version History
1.0.0 Jun 04 2017 05:56 AM Jun 04 2017 05:56 AM
0.1.0 Jun 01 2017 02:51 PM Jun 01 2017 02:51 PM

 

No collaborators yet.
 
  • Jun 01 2017 02:51 PM
  • Jun 04 2017 05:59 AM
  • 882
  • 0
  • 48