slack-ruby/slack-ruby-client

View on GitHub
bin/commands/bots.rb

Summary

Maintainability
A
50 mins
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

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