Class: PkgLookup::Runner
- Inherits:
-
Object
- Object
- PkgLookup::Runner
- Defined in:
- lib/pkglookup/runner.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/pkglookup/runner.rb', line 5 def start if ARGV[0].nil? puts "Usage #{$0} <term>" exit end results = PkgLookup::Client.search(ARGV[0]) puts Hirb::Helpers::AutoTable.render(results, :fields => ['name', 'source', 'url'], :resize => false) end |