dblock/slack-ruby-client

View on GitHub
bin/commands/auth_teams.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 '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