Sha256: 94cee04a8e6a2674aa93c11a2d6ffc01b5d752c5fb3656810dfca1ffd01d4f7e

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'gli'
require_relative '../lib/slack_messaging'

include GLI::App

program_desc 'Slack Messaging'
version SlackMessaging::VERSION

wrap_help_text :verbatim

flag [:config], :desc => 'SlackMessaging config file path', :default_value => SlackMessaging::DefaultPaths.config

program_long_desc """
DOCUMENTATION
"""

desc 'Prints a variety of messages to Slack'
command 'slack' do |c|
  c.action do |global_options, options, args|
    SlackMessaging::Slack.execute(args, options) # args are optional string to print
  end
end

pre do |global,command,options,args|
  SlackMessaging::Config.load(global[:config])
  SlackMessaging::Config.set_config_options(global)
  true
end

exit run(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack_messaging-1.3.1 bin/slack-messaging