Kim Alvefur <zash@zash.se> [Sat, 08 Apr 2023 10:16:18 +0200] rev 13065
mod_admin_shell: Allow wildcard matches like s2s:show("*.example.com")
E.g. if you want to show connections to/from a domain, including its
subdomains, this is handy.
Kim Alvefur <zash@zash.se> [Fri, 07 Apr 2023 17:18:23 +0200] rev 13064
util.sasl: Fix a singulars
Thanks timeless, your mere existence inspires us to improve our
spelling, tho this was more syntax.
Matthew Wild <mwild1@gmail.com> [Fri, 07 Apr 2023 16:00:23 +0100] rev 13063
Merge 0.12->trunk
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...
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'.
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
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
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()??
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.
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.