Sha256: fef4dc0763badb71801d76addba0021d7f6135c1efd01b46c48a977be16afc20

Contents?: true

Size: 867 Bytes

Versions: 8

Compression:

Stored size: 867 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'AppsPermissions methods.'
command 'apps_permissions' do |g|
  g.desc 'Returns list of permissions this app has on a team.'
  g.long_desc %( Returns list of permissions this app has on a team. )
  g.command 'info' do |c|
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.apps_permissions_info(options))
    end
  end

  g.desc 'Allows an app to request additional scopes'
  g.long_desc %( Allows an app to request additional scopes )
  g.command 'request' do |c|
    c.flag 'scopes', desc: 'A comma separated list of scopes to request for.'
    c.flag 'trigger_id', desc: 'Token used to trigger the permissions API.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.apps_permissions_request(options))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 bin/commands/apps_permissions.rb
slack-ruby-client-1.0.0 bin/commands/apps_permissions.rb
slack-ruby-client-0.17.0 bin/commands/apps_permissions.rb
slack-ruby-client-0.16.0 bin/commands/apps_permissions.rb
slack-ruby-client-0.15.1 bin/commands/apps_permissions.rb
slack-ruby-client-0.15.0 bin/commands/apps_permissions.rb
slack-ruby-client-0.14.6 bin/commands/apps_permissions.rb
slack-ruby-client-0.14.5 bin/commands/apps_permissions.rb