Date: Fri, 23 May 2014 09:30:53 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Jonathan Anderson <jonathan.robert.anderson@gmail.com> Cc: Alfred Perlstein <bright@mu.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: [GSoC] Machine readable output from userland utilities Message-ID: <CAJ-VmomsA80Ggu6J7%2BXc-CY1i9N6zr9kim00gZOe1i6DFxuJiQ@mail.gmail.com> In-Reply-To: <9D7D4A7D-31F0-45D8-8C16-977D4FA879D6@gmail.com> References: <49E9736E-AD14-4647-8B15-30603D01360C@mail.bg> <537F0DD9.6090805@highsecure.ru> <537F11A9.8020504@mu.org> <CAETOPp0k8kESHkYShksovDm04pm4as9DoAfCm2-ojJ3in=4hsw@mail.gmail.com> <CAJ-VmomBDfePkKXMf_piG%2BhnhmwhhTREm5a5m2Qt=7U8E585Ww@mail.gmail.com> <9D7D4A7D-31F0-45D8-8C16-977D4FA879D6@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
ayup. -a On 23 May 2014 09:11, Jonathan Anderson <jonathan.robert.anderson@gmail.com> wrote: > On 23 May 2014, at 13:34, Adrian Chadd <adrian@freebsd.org> wrote: > > I'd actually prefer that some library API (like what's in libstatfoo) > gets fleshed out to cover what hooks and options are required so you > don't have to have the bikeshed argument of "what format." You only > need to write some code to output it in the format you want. > > The UNIX way is tools, not policy. The library is a policy, sure, but > it's a policy to let you define your own policies. It won't be locking > anyone into anything like "json or bust." > > So how about the focus be on that, rather than trying to teach > individual tools about individual encoding types? > > > I think that's pretty much what the proposal says: > >> I'm planning to create a unified output abstraction in the form of a >> library. The tools supporting the machine-readable output feature >> will write output exclusively using the library. The exact output format >> will be customizable. Several backend libraries (like libucl and libnv) >> can be used to implement different formats. > > Am I perhaps misunderstanding you, and you're actually saying "let's not get > distracted by bikesheds, the proposal is terrific as-is"? > > > Jon > -- > Jonathan Anderson > > jonathan@FreeBSD.org > http://freebsd.org/~jonathan/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomsA80Ggu6J7%2BXc-CY1i9N6zr9kim00gZOe1i6DFxuJiQ>