Fri, 07 Apr 2023 16:00:23 +0100 Merge 0.12->trunk
Matthew Wild <mwild1@gmail.com> [Fri, 07 Apr 2023 16:00:23 +0100] rev 13063
Merge 0.12->trunk
Fri, 07 Apr 2023 13:24:29 +0100 util.argparse: Translate '-' to '_' in long option names for convenience
Matthew Wild <mwild1@gmail.com> [Fri, 07 Apr 2023 13:24:29 +0100] rev 13062
util.argparse: Translate '-' to '_' in long option names for convenience A review of existing code suggests nothing will break. So, here we go...
Fri, 07 Apr 2023 15:54:59 +0100 prosodyctl: Fix using variable content in a format string 0.12
Matthew Wild <mwild1@gmail.com> [Fri, 07 Apr 2023 15:54:59 +0100] rev 13061
prosodyctl: Fix using variable content in a format string This broke if the error message contained a format specified such as '%s'.
Thu, 28 Apr 2022 20:40:59 +0200 mod_http_file_share: use util.human.io.parse_duration
Jonas Schäfer <jonas@wielicki.name> [Thu, 28 Apr 2022 20:40:59 +0200] rev 13060
mod_http_file_share: use util.human.io.parse_duration Updated by Zash, the original patch by Jonas had put the duration parsing function in util.datetime but MattJ later did the same thing but differently in f4d7fe919969
Thu, 28 Apr 2022 20:38:40 +0200 mod_mam: port to use util.human.io.parse_duration
Jonas Schäfer <jonas@wielicki.name> [Thu, 28 Apr 2022 20:38:40 +0200] rev 13059
mod_mam: port to use util.human.io.parse_duration Updated by Zash, the original patch by Jonas had put the duration parsing function in util.datetime but MattJ later did the same thing but differently in f4d7fe919969
Fri, 07 Apr 2023 14:14:53 +0100 util.human.io: Add parse_duration() method to parse a duration string
Matthew Wild <mwild1@gmail.com> [Fri, 07 Apr 2023 14:14:53 +0100] rev 13058
util.human.io: Add parse_duration() method to parse a duration string Similar logic occurs throughout various modules in the codebase. We might even want a module:get_option_duration()??
Fri, 07 Apr 2023 14:03:24 +0200 mod_admin_shell: Allow "*" as substitute for 'nil' for easier CLI usage
Kim Alvefur <zash@zash.se> [Fri, 07 Apr 2023 14:03:24 +0200] rev 13057
mod_admin_shell: Allow "*" as substitute for 'nil' for easier CLI usage Since prosodyctl shell with additional arguments assumes the first two are a section:command() and any following arguments are strings, passing a bare 'nil' is not possible. In order to avoid delving into this rabbit hole, instead produce a token that alone is not really a legal JID for use as wildcard.
Fri, 07 Apr 2023 13:58:39 +0200 util.prosodyctl.shell: Fix sending terminal width with single argument
Kim Alvefur <zash@zash.se> [Fri, 07 Apr 2023 13:58:39 +0200] rev 13056
util.prosodyctl.shell: Fix sending terminal width with single argument E.g. when you do 'prosodyctl shell "s2s:show()"', this is the case that triggers, and it was missing the @width argument, causing confusion.
Fri, 07 Apr 2023 13:54:16 +0200 util.human.io: Coerce $COLUMNS to number
Kim Alvefur <zash@zash.se> [Fri, 07 Apr 2023 13:54:16 +0200] rev 13055
util.human.io: Coerce $COLUMNS to number os.getenv() returns a string but term_width() should return a number
Fri, 07 Apr 2023 13:53:40 +0200 util.prosodyctl.shell: Coerce terminal width to string (for util.stanza)
Kim Alvefur <zash@zash.se> [Fri, 07 Apr 2023 13:53:40 +0200] rev 13054
util.prosodyctl.shell: Coerce terminal width to string (for util.stanza) Fixes invalid attribute value: expected string, got number
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 tip