forked from slack-ruby/slack-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth_teams.rb
22 lines (21 loc) · 932 Bytes
/
auth_teams.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
module Slack
module Cli
class App
desc 'AuthTeams methods.'
command 'auth_teams' do |g|
g.desc 'List the workspaces a token can access.'
g.long_desc %( List the workspaces a token can access. )
g.command 'list' do |c|
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
c.flag 'include_icon', desc: 'Whether to return icon paths for each workspace. An icon path represents a URI pointing to the image signifying the workspace.'
c.flag 'limit', desc: 'The maximum number of workspaces to return. Must be a positive integer no larger than 1000.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.auth_teams_list(options))
end
end
end
end
end
end