Re: [GSoC] Machine readable output from userland utilities

看板FB_hackers作者時間11年前 (2014/05/25 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串27/29 (看更多)
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/ _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JWEMZS- (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 27 之 29 篇):
文章代碼(AID): #1JWEMZS- (FB_hackers)