util.prosodyctl.shell: Coerce terminal width to string (for util.stanza)
Fixes invalid attribute value: expected string, got number
--- a/util/prosodyctl/shell.lua Fri Apr 07 12:51:26 2023 +0100
+++ b/util/prosodyctl/shell.lua Fri Apr 07 13:53:40 2023 +0200
@@ -30,7 +30,7 @@
end
local function send_line(client, line)
- client.send(st.stanza("repl-input", { width = term_width() }):text(line));
+ client.send(st.stanza("repl-input", { width = tostring(term_width()) }):text(line));
end
local function repl(client)