Date: Mon, 22 Jun 2020 09:29:05 +0200 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: Ryan Moeller <freqlabs@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r362477 - in head: . libexec/flua tools/build Message-ID: <5b27ac25-b2df-1539-db49-bfe6e9e1286a@FreeBSD.org> In-Reply-To: <202006220314.05M3Eic1063005@repo.freebsd.org> References: <202006220314.05M3Eic1063005@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/22/20 5:14 AM, Ryan Moeller wrote: > Author: freqlabs > Date: Mon Jun 22 03:14:43 2020 > New Revision: 362477 > URL: https://svnweb.freebsd.org/changeset/base/362477 > > Log: > flua: add ucl library > > libucl comes with a Lua library binding. Build it into flua. > > This lets us parse/generate config files in the various formats supported by > libucl with flua. For example, the following script will detect the format of > an object written to stdin as one of UCL config, JSON, or YAML and write it to > stdout as pretty-printed JSON: > > local ucl = require('ucl') > local parser = ucl.parser() > parser:parse_string(io.read('*a')) > local obj = parser:get_object() > print(ucl.to_format(obj, 'json')) > > Reviewed by: kevans, pstef > Approved by: mmacy (mentor) > Relnotes: yes > Differential Revision: https://reviews.freebsd.org/D25009 It sounds great! BTW, Is flua to be used by end users directly, or it is just a tool which should not be considered a public interface (like pjdlog.h)? Cheers, Mateusz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b27ac25-b2df-1539-db49-bfe6e9e1286a>