aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.12->trunkMatthew Wild2023-04-071-1/+1
|\
| * prosodyctl: Fix using variable content in a format stringMatthew Wild2023-04-071-1/+1
| | | | | | | | This broke if the error message contained a format specified such as '%s'.
* | executables: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-18/+18
| |
* | executables: Invoke loader to allow mixing of old and new import styleKim Alvefur2023-03-171-0/+4
| | | | | | | | | | Now both require"util.foo" and require"prosody.util.foo" should be equivalent.
* | Merge 0.12->trunkKim Alvefur2023-01-221-4/+4
|\|
| * util.startup: Close state on exit to ensure GC finalizers are calledKim Alvefur2023-01-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Ensures a last round of garbage collection and that finalizers are called. Fixes things like proper closing of SQLite3 state. There are more calls to os.exit() but most of them exit with an error or in a case where a final GC sweep might not matter as much. It would be nice if this was the default. Calling util.statup.exit() everywhere may be sensible, but would be more involved, requiring imports everywhere.
* | compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
| |
* | executables: Reject Lua 5.1 earlyKim Alvefur2022-07-021-0/+7
|/ | | | | | | | | | | | | | | | | Prevents attempting to load libraries that may no longer be found and crashing with a traceback. Platforms like Debian where multiple Lua versions can be installed at the same time and 'lua' pointing to one of the installed interpreters via symlinks, there's the possibility that prosody/prosodyctl may be invoked with Lua 5.1, which will no longer have any of the rest of Prosody libraries available to be require(), and thus would immediately fail with an unfriendly traceback. Checking and aborting early with a friendlier message and reference to more information is better. Part of #1600
* prosodyctl: Pass server when listing (outdated) plugins (fix #1738)Kim Alvefur2022-04-051-1/+7
| | | | | Needed since it checks the manifest of the repository and most likely defaults to luarocks.org unless specified
* prosodyctl about: Report version of lua-readlineKim Alvefur2022-03-271-2/+8
| | | | Good to know since it affects how well the shell works
* prosodyctl: Restore 'list --outdated'Kim Alvefur2022-02-171-0/+4
| | | | | Parsing --flags puts it into 'opts', so --outdated wasn't passed to luarocks, breaking that functionality
* prosodyctl: Allow passing server on command line with --serverKim Alvefur2022-02-041-1/+1
| | | | Because why not I guess. This mirrors the corresponding luarocks command
* prosodyctl: Allow install plugin via explicit path or URLKim Alvefur2022-02-041-2/+2
| | | | | | | | | | This way you don't need to set the server URL in the config to use this, you could just ^C^V an install line from a web page that says prosodyctl install https://modules.example.com/mod_example.src.rock Drop the help message in this case since it'll be all messed up by being given an URL or rock filename.
* prosodyctl: Return success status code from --helpKim Alvefur2022-02-041-11/+11
| | | | | Only when the help is shown because of invalid arguments should a non-zero status code be returned to indicate a problem.
* prosodyctl: Use argument parsing library to parse --help, -h, -?Kim Alvefur2022-02-041-12/+27
| | | | Reads nicer, but adds more code. Can always be reverted later I suppose.
* prosodyctl: Hide process management commands when init system should be used ↵Kim Alvefur2021-12-211-3/+19
| | | | instead
* prosodyctl: Reorder help sectionsKim Alvefur2021-12-211-5/+5
| | | | | | By how old the commands are? Or how disruptive the changes are? Or just by what feels best?
* prosodyctl: Fix weird indentationKim Alvefur2021-11-061-2/+2
|
* Merge 0.11->trunkKim Alvefur2021-09-201-1/+1
|\
| * prosodyctl: Fix later import of LuaFileSystemKim Alvefur2021-09-111-1/+1
| | | | | | | | | | | | lfs or WHAT How did this even happen?
| * prosodyctl: Add 'limits' to known globals to warn about misplacing itKim Alvefur2021-05-271-1/+1
| | | | | | | | It will do nothing in a VirtualHost section for example.
* | prosodyctl: Add a note about checking the order of listed commandsKim Alvefur2021-07-151-1/+1
| | | | | | | | Should Plugin really be first? What order makes the most sense?
* | prosodyctl: Add cert to command listingKim Alvefur2021-07-151-1/+3
| | | | | | | | | | This hides a whole bunch of subcommands tho, maybe those should be explicitly listed?
* | prosodyctl: Add 'shell' to command listingKim Alvefur2021-07-151-1/+2
| |
* | prosodyctl: Add 'check' to command listing (fixes #1622)Kim Alvefur2021-05-301-0/+10
| | | | | | | | | | Along with infrastructure for the other commands that live in external modules.
* | prosodyctl: Reorganize help / command listKim Alvefur2021-01-221-7/+15
| |
* | prosodyctl: Report OpenSSL versionKim Alvefur2021-05-121-0/+4
| |
* | Merge 0.11->trunkMatthew Wild2021-05-131-0/+4
|\|
| * prosodyctl about: Report libexpat version if knownMatthew Wild2021-05-111-1/+5
| |
| * prosodyctl: check config: Add 'gc' to list of global optionsMatthew Wild2021-04-301-1/+1
| |
* | prosodyctl: Add reference to #1602 (plugin installer docs) in commentKim Alvefur2021-01-211-0/+1
| |
* | prosodyctl: Move message after conditionKim Alvefur2021-01-211-1/+1
| | | | | | | | If the condition is false, the message becomes a lie!
* | prosodyctl: Fix copypaste oversightKim Alvefur2021-01-211-2/+2
| |
* | prosodyctl: Abort if no plugin source specified for the installerKim Alvefur2021-01-211-1/+7
| | | | | | | | Better than having a non-working default.
* | prosodyctl: Move UI related calls out of util.prosodyctlKim Alvefur2021-01-211-0/+5
| | | | | | | | | | I think this follows the general separation of duties between prosodyctl and util.prosodyctl better.
* | prosodyctl: Use luarocks status code as exit codeKim Alvefur2021-01-211-3/+6
| | | | | | | | Enables some shell level error handling
* | prosodyctl: Remove non-existant command from hidden commandsKim Alvefur2021-01-051-1/+1
| | | | | | | | | | Apparently there existed a plugin installer for a brief time in 2010, between c5d3905c98a6 and 8f78e8164032
* | util.prosodyctl: Get Luarocks server from configKim Alvefur2020-10-051-1/+2
| |
* | util.prosodyctl: Move hardcoded luarocks server into prosodyctlKim Alvefur2020-10-051-1/+1
| | | | | | | | To be replaced with config option in future commit
* | util.prosodyctl: Flip argument orderKim Alvefur2020-10-051-3/+3
| | | | | | | | | | "verb subject" feels better than "subject verb", especially since the subject (module) is optional.
* | prosodyctl about: Show longer name for luaunboundKim Alvefur2020-07-101-2/+2
| | | | | | | | luaunbound, lunbound, lua-unbound ... "kärt barn har många namn"
* | prosodyctl about: Strip name from lua module _VERSIONKim Alvefur2020-07-101-1/+5
| | | | | | | | | | Some modules have _VERSION = "LuaModule x.y.z", so it is a bit weird to show the name twice.
* | prosodyctl about: Substitute better names for some Lua modulesKim Alvefur2020-07-101-1/+10
| | | | | | | | E.g. 'lxp' isn't that easy to guess that it's LuaExpat
* | prosodyctl about: Split out libraries into a separate sectionKim Alvefur2020-07-101-5/+10
| | | | | | | | | | Currently libevent and libunbound would show up under Lua modules but they are not, so a separate section seems more appropriate.
* | prosodyctl about: Use library function for sorted listing of lua modulesKim Alvefur2020-07-101-5/+3
| | | | | | | | Code reuse and one less module to import is nice.
* | prosodyctl about: Report versions of luaunbound and libunboundKim Alvefur2020-06-251-0/+7
| |
* | prosodyctl: Fix traceback when no command provided (thanks Zash)Matthew Wild2020-06-041-1/+1
| |
* | prosodyctl+util.prosodyctl.*: Start breaking up the ever-growing prosodyctlMatthew Wild2020-06-021-825/+11
| |
* | prosodyctl, util.prosodyctl.shell: `prosodyctl shell` - a client to access ↵Matthew Wild2020-06-011-0/+4
| | | | | | | | the prosodyctl admin shell
* | prosodyctl: Add 'daemonize' to deprecated options known by check commandKim Alvefur2020-01-261-1/+1
| |