- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: stdout poisoning in knife commands
- Date: Wed, 25 Feb 2015 11:50:09 -0800
On Wednesday, February 25, 2015 at 11:31 AM, Ed Ropple wrote:
>
"Parse with JSON" is not a friendly option. It's not a streaming nor a
>
row-based format. -Ftext _is_ a streaming format, but poisons stdout in a
>
way that is antithetical to normal Unix usage.
>
>
I filed an issue describing the issue:
>
https://github.com/chef/chef/issues/2980
>
>
-Ed
I replied on the issue. tl;dr, -Ftext isn’t a row-based format either, as you
can demonstrate with `knife node show NODE -m`. I would be fine with moving
“diagnostic” messages like that to stderr to make what you’re doing now
easier, but there’s a limit to what you can accomplish with the “text”
formatter because first and foremost it’s about presenting data for humans to
read, which is IMO not feasible to do in a row-based format given the nested
JSON structures we’re dealing with.
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.