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]
This commit is contained in:
lemoer 2017-10-28 17:05:53 +02:00 committed by Matthias Schiffer
parent 5817170821
commit 0f5d932c4f
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -0,0 +1,6 @@
#!/usr/bin/lua
local json = require 'jsonc'
local site = require 'gluon.site'
print(json.stringify(site(), true))