Netflix/denominator — pull request #198 by adriancole (2013-07-06 02:59:10+00:00)
Title: new dagger-driven cli

This is a start on a new cli, which wires things together with Dagger. This also switches the default representation of cli get commands to yaml. This is a work-in-progress with a goal to make an easy to read and diff format for geo changes.

For example, here are washed results of two similar geo records, but particularly their territories are different

```
$ denominator-cli/build/denominator -n ultradns-prod -C ~/.denominator/config.yml rrset -z netflix.com. get -n XXXXXX.netflix.com. -t CNAME -q US-WEST-2
name: XXXXXX.netflix.com.
type: CNAME
qualifier: US-WEST-2
ttl: 300
profiles:
- type: geo
regions:
Canada (CA): [Alberta, British Columbia, Greenland, Manitoba, Northwest Territories,
Nunavut, Saint Pierre and Miquelon, Saskatchewan, Undefined Canada, Yukon]
United States (US): [Alaska, Arizona, Arkansas, Armed Forces Americas, 'Armed
Forces Europe, Middle East, and Canada', Armed Forces Pacific, California,
Colorado, Hawaii, Idaho, Iowa, Kansas, Louisiana, Minnesota, Missouri, Montana,
Nebraska, Nevada, New Mexico, North Dakota, Oklahoma, Oregon, South Dakota,
Texas, Undefined United States, United States Minor Outlying Islands, Utah,
Washington, Wyoming]
rdata: [XXXXXX-1065034783.us-west-2.elb.amazonaws.com.]
$ denominator-cli/build/denominator -n ultradns-prod -C ~/.denominator/config.yml rrset -z netflix.com. get -n YYYYYYY.netflix.com. -t CNAME -q US-WEST-2
name: YYYYYYY.netflix.com.
type: CNAME
qualifier: US-WEST-2
ttl: 300
profiles:
- type: geo
regions:
Canada (CA): [Alberta, British Columbia, Greenland, Manitoba, Northwest Territories,
Nunavut, Saint Pierre and Miquelon, Saskatchewan, Undefined Canada, Yukon]
Mexico: [Mexico]
South America: [Brazil]
United States (US): [Alaska, Arizona, Arkansas, California, Colorado, Hawaii,
Idaho, Iowa, Kansas, Louisiana, Minnesota, Missouri, Montana, Nebraska, Nevada,
New Mexico, North Dakota, Oklahoma, Oregon, South Dakota, Texas, Utah, Washington,
Wyoming]
rdata: [YYYYYYY-420159501.us-west-2.elb.amazonaws.com.]
```

Not saying this is easy, but it is surely easier!

p.s. the cli is <1.2MB now, too (down from just under 3MB).