|
| 1 | +# frozen_string_literal: true |
| 2 | +# This file was auto-generated by lib/tasks/web.rake |
| 3 | + |
| 4 | +module Slack |
| 5 | + module Cli |
| 6 | + class App |
| 7 | + desc 'WorkflowsFeatured methods.' |
| 8 | + command 'workflows_featured' do |g| |
| 9 | + g.desc 'Add featured workflows to a channel.' |
| 10 | + g.long_desc %( Add featured workflows to a channel. ) |
| 11 | + g.command 'add' do |c| |
| 12 | + c.flag 'channel_id', desc: 'Channel to add featured workflow in.' |
| 13 | + c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to add; max 15.' |
| 14 | + c.action do |_global_options, options, _args| |
| 15 | + puts JSON.dump(@client.workflows_featured_add(options)) |
| 16 | + end |
| 17 | + end |
| 18 | + |
| 19 | + g.desc 'List the featured workflows for specified channels.' |
| 20 | + g.long_desc %( List the featured workflows for specified channels. ) |
| 21 | + g.command 'list' do |c| |
| 22 | + c.flag 'channel_ids', desc: 'Comma-separated array of channel IDs to list featured workflows for.' |
| 23 | + c.action do |_global_options, options, _args| |
| 24 | + puts JSON.dump(@client.workflows_featured_list(options)) |
| 25 | + end |
| 26 | + end |
| 27 | + |
| 28 | + g.desc 'Remove featured workflows from a channel.' |
| 29 | + g.long_desc %( Remove featured workflows from a channel. ) |
| 30 | + g.command 'remove' do |c| |
| 31 | + c.flag 'channel_id', desc: 'Channel to remove featured workflow from.' |
| 32 | + c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs to remove; max 15.' |
| 33 | + c.action do |_global_options, options, _args| |
| 34 | + puts JSON.dump(@client.workflows_featured_remove(options)) |
| 35 | + end |
| 36 | + end |
| 37 | + |
| 38 | + g.desc 'Set featured workflows for a channel.' |
| 39 | + g.long_desc %( Set featured workflows for a channel. ) |
| 40 | + g.command 'set' do |c| |
| 41 | + c.flag 'channel_id', desc: 'Channel to set featured workflows in.' |
| 42 | + c.flag 'trigger_ids', desc: 'Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15.' |
| 43 | + c.action do |_global_options, options, _args| |
| 44 | + puts JSON.dump(@client.workflows_featured_set(options)) |
| 45 | + end |
| 46 | + end |
| 47 | + end |
| 48 | + end |
| 49 | + end |
| 50 | +end |
0 commit comments