|
| 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 'SlackListsItems methods.' |
| 8 | + command 'slackLists_items' do |g| |
| 9 | + g.desc 'Adds a new item to an existing list.' |
| 10 | + g.long_desc %( Adds a new item to an existing list. ) |
| 11 | + g.command 'create' do |c| |
| 12 | + c.flag 'list_id', desc: 'Id of the list to add the item to.' |
| 13 | + c.flag 'duplicated_item_id', desc: 'Id of the record to make a copy of.' |
| 14 | + c.flag 'initial_fields', desc: 'Initial item data.' |
| 15 | + c.flag 'parent_item_id', desc: 'Id of the parent record for this subtask.' |
| 16 | + c.action do |_global_options, options, _args| |
| 17 | + puts JSON.dump(@client.slackLists_items_create(options)) |
| 18 | + end |
| 19 | + end |
| 20 | + |
| 21 | + g.desc 'Deletes an item from an existing list.' |
| 22 | + g.long_desc %( Deletes an item from an existing list. ) |
| 23 | + g.command 'delete' do |c| |
| 24 | + c.flag 'id', desc: 'Id of item to delete.' |
| 25 | + c.flag 'list_id', desc: 'Id of list that contains the item.' |
| 26 | + c.action do |_global_options, options, _args| |
| 27 | + puts JSON.dump(@client.slackLists_items_delete(options)) |
| 28 | + end |
| 29 | + end |
| 30 | + |
| 31 | + g.desc 'Deletes multiple items from an existing list.' |
| 32 | + g.long_desc %( Deletes multiple items from an existing list. ) |
| 33 | + g.command 'deleteMultiple' do |c| |
| 34 | + c.flag 'ids', desc: 'Ids of items to delete.' |
| 35 | + c.flag 'list_id', desc: 'Id of list that contains the items.' |
| 36 | + c.action do |_global_options, options, _args| |
| 37 | + puts JSON.dump(@client.slackLists_items_deleteMultiple(options)) |
| 38 | + end |
| 39 | + end |
| 40 | + |
| 41 | + g.desc 'Get a row from a list' |
| 42 | + g.long_desc %( Get a row from a list ) |
| 43 | + g.command 'info' do |c| |
| 44 | + c.flag 'id', desc: 'Id of row to get.' |
| 45 | + c.flag 'list_id', desc: 'Id of the list to export.' |
| 46 | + c.flag 'include_is_subscribed', desc: 'Set to true to include is_subscribed data for returned list row.' |
| 47 | + c.action do |_global_options, options, _args| |
| 48 | + puts JSON.dump(@client.slackLists_items_info(options)) |
| 49 | + end |
| 50 | + end |
| 51 | + |
| 52 | + g.desc 'Get records from a list' |
| 53 | + g.long_desc %( Get records from a list ) |
| 54 | + g.command 'list' do |c| |
| 55 | + c.flag 'list_id', desc: 'Id of list.' |
| 56 | + c.flag 'archived', desc: 'Boolean indicating whether archived items or normal items should be returned.' |
| 57 | + c.flag 'cursor', desc: 'Next cursor for pagination.' |
| 58 | + c.flag 'limit', desc: 'The maximum number of records to return.' |
| 59 | + c.action do |_global_options, options, _args| |
| 60 | + puts JSON.dump(@client.slackLists_items_list(options)) |
| 61 | + end |
| 62 | + end |
| 63 | + |
| 64 | + g.desc 'Updates cells in a list' |
| 65 | + g.long_desc %( Updates cells in a list ) |
| 66 | + g.command 'update' do |c| |
| 67 | + c.flag 'cells', desc: 'Cells to update.' |
| 68 | + c.flag 'list_id', desc: 'Id of list to add or update cells.' |
| 69 | + c.action do |_global_options, options, _args| |
| 70 | + puts JSON.dump(@client.slackLists_items_update(options)) |
| 71 | + end |
| 72 | + end |
| 73 | + end |
| 74 | + end |
| 75 | + end |
| 76 | +end |
0 commit comments