bin/slack-messaging in slack_messaging-3.2.3 vs bin/slack-messaging in slack_messaging-3.3.0
- old
+ new
@@ -11,11 +11,11 @@
program_desc 'Slack Messaging'
version SlackMessaging::VERSION
wrap_help_text :verbatim
-flag [:config], desc: 'Slack Messaging config file path', default_value: SlackMessaging::DefaultPaths.config
+flag %i[c config], desc: 'Slack Messaging config file path', default_value: SlackMessaging::DefaultPaths.config
program_long_desc "
DOCUMENTATION
For documentation and help in setting up your configuration files,
see Slack Messaging's GitHub repo: https://github.com/emmahsax/slack_messaging
@@ -26,9 +26,13 @@
true
end
desc 'Prints a variety of messages to Slack'
command 'send' do |c|
+ c.desc "The service ('slack' or 'discord') that you wish to notify - if none is given, Slack Messaging will " \
+ 'notify each service present in the config file'
+ c.flag %i[s service]
+
c.action do |_global_options, options, args|
SlackMessaging::Send.execute(args, options)
end
end