Changeset

10791:f46c5e3c97ee

mod_admin_telnet: Add a command to configure pretty-printing settings Sometimes you wanna adjust the maxdepth or something.
author Kim Alvefur <zash@zash.se>
date Wed, 29 Apr 2020 23:15:01 +0200
parents 10790:ee2f8ee319ea
children 10792:ef2bd183f660
files plugins/mod_admin_telnet.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Wed Apr 29 22:59:01 2020 +0200
+++ b/plugins/mod_admin_telnet.lua	Wed Apr 29 23:15:01 2020 +0200
@@ -330,6 +330,11 @@
 
 --luacheck: ignore 212/self
 
+def_env.output = {};
+function def_env.output:configure(opts)
+	self.session.serialize = serialization.new(opts);
+end
+
 def_env.server = {};
 
 function def_env.server:insane_reload()