bin/commands/search.rb in slack-ruby-client-0.7.9 vs bin/commands/search.rb in slack-ruby-client-0.8.0
- old
+ new
@@ -6,11 +6,11 @@
g.long_desc %( This method allows users and applications to search both messages and files in a single call. )
g.command 'all' do |c|
c.flag 'query', desc: 'Search query. May contains booleans, etc.'
c.flag 'sort', desc: 'Return matches sorted by either score or timestamp.'
c.flag 'sort_dir', desc: 'Change sort direction to ascending (asc) or descending (desc).'
- c.flag 'highlight', desc: 'Pass a value of 1 to enable query highlight markers (see below).'
+ c.flag 'highlight', desc: 'Pass a value of true to enable query highlight markers (see below).'
c.action do |_global_options, options, _args|
puts JSON.dump($client.search_all(options))
end
end
@@ -18,11 +18,11 @@
g.long_desc %( This method returns files matching a search query. )
g.command 'files' do |c|
c.flag 'query', desc: 'Search query. May contain booleans, etc.'
c.flag 'sort', desc: 'Return matches sorted by either score or timestamp.'
c.flag 'sort_dir', desc: 'Change sort direction to ascending (asc) or descending (desc).'
- c.flag 'highlight', desc: 'Pass a value of 1 to enable query highlight markers (see below).'
+ c.flag 'highlight', desc: 'Pass a value of true to enable query highlight markers (see below).'
c.action do |_global_options, options, _args|
puts JSON.dump($client.search_files(options))
end
end
@@ -30,10 +30,10 @@
g.long_desc %( This method returns messages matching a search query. )
g.command 'messages' do |c|
c.flag 'query', desc: 'Search query. May contains booleans, etc.'
c.flag 'sort', desc: 'Return matches sorted by either score or timestamp.'
c.flag 'sort_dir', desc: 'Change sort direction to ascending (asc) or descending (desc).'
- c.flag 'highlight', desc: 'Pass a value of 1 to enable query highlight markers (see below).'
+ c.flag 'highlight', desc: 'Pass a value of true to enable query highlight markers (see below).'
c.action do |_global_options, options, _args|
puts JSON.dump($client.search_messages(options))
end
end
end