hulihanapplications / fletcher

A cross-website product information fetcher for ruby.
http://www.hulihanapplications.com
MIT License
53 stars 12 forks source link

CLI Interface #8

Closed dhulihan closed 11 years ago

dhulihan commented 11 years ago

It would be nice to have a CLI interface for fletcher, something that would return item/product results in multiple formats (json, yaml, etc.)

# Get product information in yaml
$ fletcher "http://www.amazon.com/gp/product/B004HZYA6E/"

url: "http://www.amazon.com/gp/product/B004HZYA6E/"
title: "Kindle Keyboard 3G"
price: "$139.00"

# Get just one attribute
$ fletcher --get title "http://www.amazon.com/gp/product/B004HZYA6E/"

Kindle Keyboard 3G
dhulihan commented 11 years ago

Wrote CLI Interface using Commander. See 3a3baf733c2e477b30d9c57ac589240045460445. Got some basic functionality working. Still need to test command output in rspec.