File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,23 @@ require 'kmdata'
44require 'optparse'
55require 'pry'
66
7- options = { model : 'people' }
7+ options = { model : "people" , include : "addresses,phone_numbers" }
8+
89
910OptionParser . new do |opts |
1011 opts . banner = "Usage: kmdata [query] [options]"
1112
1213 opts . on ( "-m" , "--model [MODEL]" ) do |m |
1314 options [ :model ] = m
1415 end
16+
17+ opts . on ( "-i" , "--include [INCLUDE]" ) do |m |
18+ options [ :model ] = m
19+ end
1520end . parse!
1621
1722if ARGV [ 0 ]
18- results = KMData . get ( options [ :model ] , q : ARGV [ 0 ] )
23+ results = KMData . get ( options [ :model ] , q : ARGV [ 0 ] , include : options [ :include ] )
1924
2025 if results . any?
2126 results . each do |object |
Original file line number Diff line number Diff line change 11module KMData
2- VERSION = "0.0.5 "
2+ VERSION = "0.0.6 "
33end
You can’t perform that action at this time.
0 commit comments