Class: Vimdb::Runner
- Inherits:
-
Boson::Runner
- Object
- Boson::Runner
- Vimdb::Runner
- Defined in:
- lib/vimdb/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
- #commands(query = nil, options = {}) ⇒ Object
- #info(item = nil) ⇒ Object
- #keys(query = nil, options = {}) ⇒ Object
- #options(query = nil, opts = {}) ⇒ Object
Class Method Details
.common_search_options ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vimdb/runner.rb', line 7 def self. option :reload, :type => :boolean, :desc => 'reloads items' option :sort, :type => :string, :desc => 'sort by field' option :reverse_sort, :type => :boolean option :ignore_case, :type => :boolean option :regexp, :type => :boolean, :desc => 'query is a regexp' option :not, :type => :boolean, :desc => 'return non-matching results' option :all, :type => :boolean, :desc => 'search all fields' option :field, :type => :string, :desc => 'field to query' option :tab, :type => :boolean, :desc => 'print tab-delimited table' end |
Instance Method Details
#commands(query = nil, options = {}) ⇒ Object
36 37 38 39 |
# File 'lib/vimdb/runner.rb', line 36 def commands(query = nil, ={}) Vimdb.item('commands') search_item(query, ) end |
#info(item = nil) ⇒ Object
42 43 44 |
# File 'lib/vimdb/runner.rb', line 42 def info(item = nil) puts Vimdb.item(item).info end |