dblock/slack-ruby-client

View on GitHub
bin/commands/admin_teams_admins.rb

Summary

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

module Slack
  module Cli
    class App
      desc 'AdminTeamsAdmins methods.'
      command 'admin_teams_admins' do |g|
        g.desc 'List all of the admins on a given workspace.'
        g.long_desc %( List all of the admins on a given workspace. )
        g.command 'list' do |c|
          c.flag 'team_id', desc: '.'
          c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
          c.flag 'limit', desc: 'The maximum number of items to return.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.admin_teams_admins_list(options))
          end
        end
      end
    end
  end
end