bin/commands/admin_functions.rb
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
module Slack
module Cli
class App
desc 'AdminFunctions methods.'
command 'admin_functions' do |g|
g.desc 'Look up functions by a set of apps'
g.long_desc %( Look up functions by a set of apps )
g.command 'list' do |c|
c.flag 'app_ids', desc: 'Comma-separated array of app IDs to get functions for; max 50.'
c.flag 'cursor', desc: 'Set cursor to next_cursor returned by the previous call to list items in the next page.'
c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive.'
c.flag 'team_id', desc: 'The team context to retrieve functions from.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_functions_list(options))
end
end
end
end
end
end