bin/commands/bots.rb in slack-ruby-client-2.0.0 vs bin/commands/bots.rb in slack-ruby-client-2.1.0
- old
+ new
@@ -1,15 +1,21 @@
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
-desc 'Bots methods.'
-command 'bots' do |g|
- g.desc 'Gets information about a bot user.'
- g.long_desc %( Gets information about a bot user. )
- g.command 'info' do |c|
- c.flag 'bot', desc: 'Bot user to get info on.'
- c.flag 'team_id', desc: 'encoded team id or enterprise id where the bot exists, required if org token is used.'
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.bots_info(options))
+module Slack
+ module Cli
+ class App
+ desc 'Bots methods.'
+ command 'bots' do |g|
+ g.desc 'Gets information about a bot user.'
+ g.long_desc %( Gets information about a bot user. )
+ g.command 'info' do |c|
+ c.flag 'bot', desc: 'Bot user to get info on.'
+ c.flag 'team_id', desc: 'encoded team id or enterprise id where the bot exists, required if org token is used.'
+ c.action do |_global_options, options, _args|
+ puts JSON.dump(@client.bots_info(options))
+ end
+ end
+ end
end
end
end