bin/commands/admin_inviteRequests_denied.rb in slack-ruby-client-2.0.0 vs bin/commands/admin_inviteRequests_denied.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 'AdminInviterequestsDenied methods.'
-command 'admin_inviteRequests_denied' do |g|
- g.desc 'List all denied workspace invite requests.'
- g.long_desc %( List all denied workspace invite requests. )
- g.command 'list' do |c|
- c.flag 'cursor', desc: 'Value of the next_cursor field sent as part of the previous api response.'
- c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive.'
- c.flag 'team_id', desc: 'ID for the workspace where the invite requests were made.'
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.admin_inviteRequests_denied_list(options))
+module Slack
+ module Cli
+ class App
+ desc 'AdminInviterequestsDenied methods.'
+ command 'admin_inviteRequests_denied' do |g|
+ g.desc 'List all denied workspace invite requests.'
+ g.long_desc %( List all denied workspace invite requests. )
+ g.command 'list' do |c|
+ c.flag 'cursor', desc: 'Value of the next_cursor field sent as part of the previous api response.'
+ c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive.'
+ c.flag 'team_id', desc: 'ID for the workspace where the invite requests were made.'
+ c.action do |_global_options, options, _args|
+ puts JSON.dump(@client.admin_inviteRequests_denied_list(options))
+ end
+ end
+ end
end
end
end