bin/commands/admin_teams_admins.rb in slack-ruby-client-2.0.0 vs bin/commands/admin_teams_admins.rb in slack-ruby-client-2.1.0

- old
+ new

@@ -1,16 +1,22 @@ # frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake -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)) +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