Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | util.human.io: Consider separator when calculating remaining width | Kim Alvefur | 2020-06-04 | 1 | -0/+3 | |
| | | ||||||
* | | util.human.io: Use literal ellipsis instead of \u escape | Kim Alvefur | 2020-06-04 | 1 | -1/+1 | |
| | | | | | | | | For compat with Lua 5.2 and before | |||||
* | | util.human.io: Replace overflow with ellipsis | Kim Alvefur | 2020-06-04 | 1 | -1/+3 | |
| | | ||||||
* | | util.human.io: Draw a separator between columns | Kim Alvefur | 2020-06-04 | 1 | -2/+3 | |
| | | ||||||
* | | util.dependencies: Use util.human.io.table to replace custom layout code | Matthew Wild | 2020-06-04 | 1 | -25/+22 | |
| | | ||||||
* | | util.human.io: Remove padding option and use $COLUMNS as default width | Matthew Wild | 2020-06-04 | 1 | -4/+3 | |
| | | ||||||
* | | util.human.units: Factor out function for getting multiplier | Kim Alvefur | 2020-06-04 | 1 | -9/+15 | |
| | | ||||||
* | | util.adminstream: Set a read timeout handler | Kim Alvefur | 2020-06-04 | 1 | -0/+9 | |
| | | | | | | | | So that net.server doesn't close the connection on inactivity. | |||||
* | | util.human.io: table: Fix title printing when columns use named keys | Matthew Wild | 2020-06-04 | 1 | -2/+3 | |
| | | ||||||
* | | util.array: pluck: Support default value to avoid holes | Matthew Wild | 2020-06-04 | 1 | -2/+6 | |
| | | ||||||
* | | util.human.io: table: Return title row when no row data passed | Matthew Wild | 2020-06-03 | 1 | -0/+5 | |
| | | ||||||
* | | util.human.io: table: switch row function to simply returning prepared row ↵ | Matthew Wild | 2020-06-03 | 1 | -5/+6 | |
| | | | | | | | | string | |||||
* | | util.adminstream: Fire event based on stanza name too for convenience | Matthew Wild | 2020-06-03 | 1 | -1/+3 | |
| | | ||||||
* | | util.human.io: Add padleft, padright and a table printing function | Matthew Wild | 2020-06-03 | 1 | -0/+53 | |
| | | ||||||
* | | util.human.units: Handle lack of math.log(n, base) on Lua 5.1 | Kim Alvefur | 2020-06-03 | 1 | -0/+8 | |
| | | ||||||
* | | util.human.units: Put math functions into locals | Kim Alvefur | 2020-06-03 | 1 | -3/+9 | |
| | | | | | | | | | | Primarily because the next commit will deal with math.log behaving differently on Lua 5.1 and that's eaiser with locals. | |||||
* | | util.human.units: Handle location of unpack() in Lua 5.1 | Kim Alvefur | 2020-06-03 | 1 | -1/+3 | |
| | | ||||||
* | | util.human.units: A library for formatting numbers with SI units | Kim Alvefur | 2019-01-04 | 1 | -0/+58 | |
| | | ||||||
* | | util.statistics: Unify API of methods to include a config table | Kim Alvefur | 2019-01-04 | 1 | -14/+23 | |
| | | | | | | | | | | The primary goal here is to allow specifying an unit that each statistic is measured in. | |||||
* | | util.prosodyctl.shell: Save readline history | Kim Alvefur | 2020-06-02 | 1 | -0/+7 | |
| | | ||||||
* | | util.adminstream: Import net.server [luacheck] | Matthew Wild | 2020-06-02 | 1 | -0/+1 | |
| | | ||||||
* | | util.prosodyctl.shell, util.adminstream: Move connection logic into ↵ | Matthew Wild | 2020-06-02 | 2 | -42/+47 | |
| | | | | | | | | adminstream for easier reuse | |||||
* | | util.prosodyctl.shell: Really fix --socket option | Kim Alvefur | 2020-06-02 | 1 | -1/+3 | |
| | | | | | | | | | | Forgot it stops parsing --foo options at the first argument, so subsequent commands need to parse their own options like this. | |||||
* | | util.prosodyctl.shell: Correct check for --socket | Kim Alvefur | 2020-06-02 | 1 | -1/+1 | |
| | | ||||||
* | | util.human.io: Fix variable name [luacheck] | Matthew Wild | 2020-06-02 | 1 | -1/+1 | |
| | | ||||||
* | | prosodyctl+util.prosodyctl.*: Start breaking up the ever-growing prosodyctl | Matthew Wild | 2020-06-02 | 4 | -94/+840 | |
| | | ||||||
* | | util.human.io: New central place for UI helpers | Matthew Wild | 2020-06-02 | 1 | -0/+96 | |
| | | ||||||
* | | util.prosodyctl.shell: Allow passing path to socket on command line | Kim Alvefur | 2020-06-01 | 1 | -1/+1 | |
| | | | | | | | | E.g. `prosodyctl shell --socket /path/to/prosody.scok` | |||||
* | | util.prosodyctl.shell: Use same config option as module for socket path | Kim Alvefur | 2020-06-01 | 1 | -1/+2 | |
| | | | | | | | | | | So now if you set it to a custom value, both the client and the server should use it. | |||||
* | | util.prosodyctl.shell: Join socket path with current data directory | Kim Alvefur | 2020-06-01 | 1 | -1/+3 | |
| | | | | | | | | | | | | Don't hardcode socket path as it happens to be in a source checkout. Hold on, it should use the same config option as the module! | |||||
* | | mod_admin_shell, mod_admin_telnet, util.prosodyctl.shell: Separate output ↵ | Matthew Wild | 2020-06-01 | 1 | -2/+4 | |
| | | | | | | | | | | | | from final result Fixes the client pausing for input after output from commands. | |||||
* | | prosodyctl, util.prosodyctl.shell: `prosodyctl shell` - a client to access ↵ | Matthew Wild | 2020-06-01 | 1 | -0/+125 | |
| | | | | | | | | the prosodyctl admin shell | |||||
* | | mod_admin_socket, util.adminstream: New module to manage a local unix domain ↵ | Matthew Wild | 2020-06-01 | 1 | -0/+285 | |
| | | | | | | | | socket for admin functionality | |||||
* | | util.sasl.scram: Mention if clients try PLUS without channel binding | Kim Alvefur | 2020-04-26 | 1 | -2/+6 | |
| | | | | | | | | This isn't normal, but is it invalid? Likely a client bug in any case. | |||||
* | | util.rsm: Don't convert values to strings that should already be strings | Kim Alvefur | 2020-04-23 | 1 | -4/+4 | |
| | | | | | | | | Causes util.stanza to throw an error, which helps detect mistakes | |||||
* | | util.rsm: Explicitly serialize numbers in correct format | Kim Alvefur | 2020-04-23 | 1 | -1/+7 | |
| | | ||||||
* | | util.rsm: Fix passing number as attribute | Kim Alvefur | 2020-04-23 | 1 | -1/+6 | |
| | | ||||||
* | | util.sasl.digest-md5: Remove, obsolete since 2011 | Kim Alvefur | 2020-04-14 | 2 | -252/+0 | |
| | | | | | | | | | | | | | | RFC 6331 lists several problems with this outdated authentication mechanism. The code here was also completely ignored by lint checks and has probably not been used for a long time, as it is incompatible with SCRAM-hashed password storage. | |||||
* | | util.stanza: Add method returning stanza with added indentation | Kim Alvefur | 2020-04-12 | 1 | -0/+30 | |
| | | | | | | | | | | Adds indentation and line breaks to stanzas, to make stanzas easier to read for humans. | |||||
* | | util.adhoc: Allow passing dataforms in initial command | Kim Alvefur | 2020-02-26 | 1 | -2/+2 | |
| | | | | | | | | | | This might not be quite legal per XEP-0050, but makes it possible to call simpler commands without keeping state across another roundtrip. | |||||
* | | Merge 0.11->trunk | Kim Alvefur | 2020-02-24 | 1 | -1/+1 | |
|\| | ||||||
| * | util.datamanager: Fix iterating over "users" (thanks marc0s) | Kim Alvefur | 2020-02-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | The 'store' path componend used to be unescaped until 756a2a00e7e7 added escaping to address issues with characters like '/' used in PEP, but with a special case for '_' which was already in common use in 'store' path components. Missed adding this escaping here. | |||||
* | | util.jwt: Basic JSON Web Token library supporting HS256 tokens | Kim Alvefur | 2020-02-24 | 1 | -0/+50 | |
| | | ||||||
* | | util.startup: Break out command line argument parsing into util.argparse | Kim Alvefur | 2020-02-19 | 2 | -49/+63 | |
| | | | | | | | | | | This will allow using it from other places such as prosodyctl sub-commands and plugins | |||||
* | | util.startup: expose current process type (prosody/prosodyctl) in the global ↵ | Matthew Wild | 2020-01-28 | 1 | -0/+2 | |
| | | | | | | | | prosody object | |||||
* | | util.prosodyctl: Pass command line flag to force daemonization on start | Kim Alvefur | 2020-01-26 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | Part of the deprecation of the 'daemonize' config option. Further, it is a bit weird to run `prosodyctl start` and get Prosody running in the foreground. | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -2/+1 | |
|\| | ||||||
| * | util.startup: Ensure prosody.opts exists even when no options provided | Matthew Wild | 2020-01-19 | 1 | -1/+1 | |
| | | ||||||
| * | util.startup: Remove accidentally-committed debugging | Matthew Wild | 2020-01-19 | 1 | -1/+0 | |
| | | ||||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -37/+39 | |
|\| |