Sha256: 180808aa7fa1e2aa898c0f0a4ca64bb0e1f0466ada4a77dde174ed7e36d33fe1
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Cli class App desc 'AdminAppsConfig methods.' command 'admin_apps_config' do |g| g.desc 'Look up the app config for connectors by their IDs' g.long_desc %( Look up the app config for connectors by their IDs ) g.command 'lookup' do |c| c.flag 'app_ids', desc: 'An array of app IDs to get app configs for.' c.action do |_global_options, options, _args| puts JSON.dump(@client.admin_apps_config_lookup(options)) end end g.desc 'Set the app config for a connector' g.long_desc %( Set the app config for a connector ) g.command 'set' do |c| c.flag 'app_id', desc: 'The encoded app ID to set the app config for.' c.flag 'domain_restrictions', desc: 'Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.' c.flag 'workflow_auth_strategy', desc: 'The workflow auth permission. Can be one of builder_choice or end_user_only.' c.action do |_global_options, options, _args| puts JSON.dump(@client.admin_apps_config_set(options)) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-2.4.0 | bin/commands/admin_apps_config.rb |
slack-ruby-client-2.3.0 | bin/commands/admin_apps_config.rb |