bin/commands/groups.rb in slack-ruby-client-0.15.1 vs bin/commands/groups.rb in slack-ruby-client-0.16.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake -desc 'Groups methods.' +desc "Get info on your team's private channels." command 'groups' do |g| g.desc 'Archives a private channel.' g.long_desc %( Archives a private channel. ) g.command 'archive' do |c| c.flag 'channel', desc: 'Private channel to archive.' @@ -14,10 +14,11 @@ g.desc 'Creates a private channel.' g.long_desc %( Creates a private channel. ) g.command 'create' do |c| c.flag 'name', desc: 'Name of private channel to create.' + c.flag 'team_id', desc: 'encoded team id to create the channel in, required if org token is used.' c.flag 'validate', desc: 'Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.' c.action do |_global_options, options, _args| puts JSON.dump($client.groups_create(options)) end end @@ -97,19 +98,20 @@ g.command 'list' do |c| c.flag 'cursor', desc: "Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first 'page' of the collection. See pagination for more details." c.flag 'exclude_archived', desc: "Don't return archived private channels." c.flag 'exclude_members', desc: 'Exclude the members from each group.' c.flag 'limit', desc: "The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached." + c.flag 'team_id', desc: 'encoded team id to list channels in, required if org token is used.' c.action do |_global_options, options, _args| puts JSON.dump($client.groups_list(options)) end end g.desc 'Sets the read cursor in a private channel.' g.long_desc %( Sets the read cursor in a private channel. ) g.command 'mark' do |c| - c.flag 'channel', desc: 'Private channel to set reading cursor in.' - c.flag 'ts', desc: 'Timestamp of the most recently seen message.' + c.flag 'channel', desc: 'Channel or conversation to set the read cursor for.' + c.flag 'ts', desc: 'Unique identifier of message you want marked as most recently seen in this conversation.' c.action do |_global_options, options, _args| puts JSON.dump($client.groups_mark(options)) end end