Sha256: b674529ff0dba9acd70fad0c3668ac494f7f27fdb81d981bb48b061566c6d8f6
Contents?: true
Size: 697 Bytes
Versions: 4
Compression:
Stored size: 697 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) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slack_messaging-2.1.1 | bin/slack-messaging |
slack_messaging-2.1.0 | bin/slack-messaging |
slack_messaging-2.0.0 | bin/slack-messaging |
slack_messaging-1.4.0 | bin/slack-messaging |