Changeset

13132:5bfcfd12c423

mod_admin_shell: Use new serialize preset to simplify default config Two pairs replaced by one. Blame lua-format for the line diff delta.
author Kim Alvefur <zash@zash.se>
date Fri, 09 Jun 2023 17:38:46 +0200
parents 13131:03f1509a6105
children 13133:3692265becb7
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Fri Jun 09 17:26:38 2023 +0200
+++ b/plugins/mod_admin_shell.lua	Fri Jun 09 17:38:46 2023 +0200
@@ -370,8 +370,11 @@
 -- Anything in def_env will be accessible within the session as a global variable
 
 --luacheck: ignore 212/self
-local serialize_defaults = module:get_option("console_prettyprint_settings",
-	{ fatal = false; unquoted = true; maxdepth = 2; table_iterator = "pairs" })
+local serialize_defaults = module:get_option("console_prettyprint_settings", {
+	preset = "pretty";
+	maxdepth = 2;
+	table_iterator = "pairs";
+})
 
 def_env.output = {};
 function def_env.output:configure(opts)