bin/commands/groups.rb in slack-ruby-client-0.11.1 vs bin/commands/groups.rb in slack-ruby-client-0.12.0
- old
+ new
@@ -92,11 +92,13 @@
end
g.desc 'Lists private channels that the calling user has access to.'
g.long_desc %( Lists private channels that the calling user has access to. )
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.action do |_global_options, options, _args|
puts JSON.dump($client.groups_list(options))
end
end