Sha256: 4ccf0e34fab7908b127011d2041311782979a2a09cfc046829099bf2cb74c534

Contents?: true

Size: 1000 Bytes

Versions: 3

Compression:

Stored size: 1000 Bytes

Contents

# 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 'Obtain a full list of workspaces your org-wide app has been approved for.'
        g.long_desc %( Obtain a full list of workspaces your org-wide app has been approved for. )
        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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 bin/commands/auth_teams.rb
slack-ruby-client-2.3.0 bin/commands/auth_teams.rb
slack-ruby-client-2.2.0 bin/commands/auth_teams.rb