yext / edward

A tool for managing local microservice instances
http://engblog.yext.com/edward/
MIT License
171 stars 32 forks source link

Print status without formatting if not to terminal #175

Open jsharps-yext opened 5 years ago

jsharps-yext commented 5 years ago

Enables other tools to read the output of edward status

Too bad I didn't see anything to get rid of those pesky padding spaces in my quick investigation

lol account mixup but whatever

jsharps-yext commented 5 years ago

Alternatives:

Create an interface for the formatter and make the tablewriter one implementer and some quick dealio doo that pops out "foo\tbar\tbaz\n" the other implementation. (kinda like this more than what I have)

Flagging on something instead of controlling behavior via output device (don't really care all that much)

Also for this to be truly useful the "a new edward version" message should be suppressed when not outputting to terminal

jsharps-yext commented 5 years ago

Uploaded the interface one that I liked better because I liked it better.