From 0f5d932c4f95ff2694fdb4b32614c46d19f61a56 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 28 Oct 2017 17:05:53 +0200 Subject: [PATCH] gluon-core: add util gluon-show-site to print merged site config This should not convert JSON to a Lua table and back, as this loses the distinction between arrays and objects, but as our site.conf is defined in Lua anyways (for now), this can be fixed in a later revision. [Matthias Schiffer: rename to gluon-show-site, rebase] --- package/gluon-core/luasrc/usr/bin/gluon-show-site | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 package/gluon-core/luasrc/usr/bin/gluon-show-site diff --git a/package/gluon-core/luasrc/usr/bin/gluon-show-site b/package/gluon-core/luasrc/usr/bin/gluon-show-site new file mode 100755 index 00000000..df3b56fa --- /dev/null +++ b/package/gluon-core/luasrc/usr/bin/gluon-show-site @@ -0,0 +1,6 @@ +#!/usr/bin/lua + +local json = require 'jsonc' +local site = require 'gluon.site' + +print(json.stringify(site(), true))