Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | prosodyctl: Fix luacheck warning | Matthew Wild | 7 days | 1 | -1/+1 |
| | |||||
* | prosodyctl: reload: Remove redundant require | Matthew Wild | 7 days | 1 | -1/+0 |
| | |||||
* | prosodyctl: stop: Fix detection of whether Prosody is running | Matthew Wild | 7 days | 1 | -1/+5 |
| | |||||
* | prosodyctl: reload: Fix detection of whether prosody is running | Matthew Wild | 7 days | 1 | -3/+5 |
| | | | | | isrunning() returns two values (success, status) and we were only checking the first one. | ||||
* | prosodyctl: reload: use admin socket to issue reload command, if available | Matthew Wild | 7 days | 1 | -7/+11 |
| | |||||
* | prosodyctl: Hide the 'lua_paths' command from default command listing | Kim Alvefur | 2025-01-08 | 1 | -1/+1 |
| | | | | | | All commands are called with a '-h' argument, but this one doesn't have that. Since it's meant to be machine readable, hiding it seems marginally more sensible than implementing '-h'. | ||||
* | prosodyctl: Add lua_paths command to print the LUA_PATH and LUA_CPATH used | Matthew Wild | 2025-01-08 | 1 | -0/+9 |
| | | | | | This can be useful to run scripts and stuff with access to the same Lua paths as Prosody uses. | ||||
* | prosodyctl: 'about' becomes 'version -v', 'version' prints only version | Matthew Wild | 2025-01-08 | 1 | -2/+15 |
| | | | | The 'about' command remains for backwards compatibility, but hidden. | ||||
* | prosodyctl: Remove unused import | Kim Alvefur | 2025-01-08 | 1 | -2/+0 |
| | | | | Leftover after 854df134274f | ||||
* | prosodyctl: deluser: Use user:delete() shell command for implementation | Matthew Wild | 2025-01-07 | 1 | -27/+2 |
| | |||||
* | prosodyctl: passwd: Use user:password() shell command for implementation | Matthew Wild | 2025-01-07 | 1 | -31/+2 |
| | |||||
* | prosodyctl: adduser: use shell user:create() to provide the implementation | Matthew Wild | 2025-01-07 | 1 | -31/+2 |
| | | | | | | | | | This allows user creation to happen inside the running Prosody process, which improves a number of things - such as executing event handlers for user creation, fixing issues and race conditions with some storage drivers, etc. The intent is to do the same for the other prosodyctl commands, but this is the first proof of concept for the approach. | ||||
* | prosodyctl: Add experimental way to reload specific modules directly | Kim Alvefur | 2023-06-25 | 1 | -0/+9 |
| | | | | | | | | | | | | | Mostly thinking out loud about how various actions may use the shell This enables the following sequence of commands: prosodyctl install mod_example prosodyctl reload mod_example which is simpler than prosodyctl shell module reload example | ||||
* | Merge 0.12->trunk | Matthew Wild | 2023-04-07 | 1 | -1/+1 |
|\ | |||||
| * | prosodyctl: Fix using variable content in a format string | Matthew Wild | 2023-04-07 | 1 | -1/+1 |
| | | | | | | | | This broke if the error message contained a format specified such as '%s'. | ||||
* | | executables: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 1 | -18/+18 |
| | | |||||
* | | executables: Invoke loader to allow mixing of old and new import style | Kim Alvefur | 2023-03-17 | 1 | -0/+4 |
| | | | | | | | | | | Now both require"util.foo" and require"prosody.util.foo" should be equivalent. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-22 | 1 | -4/+4 |
|\| | |||||
| * | util.startup: Close state on exit to ensure GC finalizers are called | Kim Alvefur | 2023-01-22 | 1 | -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' function | Kim Alvefur | 2022-07-11 | 1 | -1/+1 |
| | | |||||
* | | executables: Reject Lua 5.1 early | Kim Alvefur | 2022-07-02 | 1 | -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 Alvefur | 2022-04-05 | 1 | -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-readline | Kim Alvefur | 2022-03-27 | 1 | -2/+8 |
| | | | | Good to know since it affects how well the shell works | ||||
* | prosodyctl: Restore 'list --outdated' | Kim Alvefur | 2022-02-17 | 1 | -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 --server | Kim Alvefur | 2022-02-04 | 1 | -1/+1 |
| | | | | Because why not I guess. This mirrors the corresponding luarocks command | ||||
* | prosodyctl: Allow install plugin via explicit path or URL | Kim Alvefur | 2022-02-04 | 1 | -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 --help | Kim Alvefur | 2022-02-04 | 1 | -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 Alvefur | 2022-02-04 | 1 | -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 Alvefur | 2021-12-21 | 1 | -3/+19 |
| | | | | instead | ||||
* | prosodyctl: Reorder help sections | Kim Alvefur | 2021-12-21 | 1 | -5/+5 |
| | | | | | | By how old the commands are? Or how disruptive the changes are? Or just by what feels best? | ||||
* | prosodyctl: Fix weird indentation | Kim Alvefur | 2021-11-06 | 1 | -2/+2 |
| | |||||
* | Merge 0.11->trunk | Kim Alvefur | 2021-09-20 | 1 | -1/+1 |
|\ | |||||
| * | prosodyctl: Fix later import of LuaFileSystem | Kim Alvefur | 2021-09-11 | 1 | -1/+1 |
| | | | | | | | | | | | | lfs or WHAT How did this even happen? | ||||
| * | prosodyctl: Add 'limits' to known globals to warn about misplacing it | Kim Alvefur | 2021-05-27 | 1 | -1/+1 |
| | | | | | | | | It will do nothing in a VirtualHost section for example. | ||||
* | | prosodyctl: Add a note about checking the order of listed commands | Kim Alvefur | 2021-07-15 | 1 | -1/+1 |
| | | | | | | | | Should Plugin really be first? What order makes the most sense? | ||||
* | | prosodyctl: Add cert to command listing | Kim Alvefur | 2021-07-15 | 1 | -1/+3 |
| | | | | | | | | | | This hides a whole bunch of subcommands tho, maybe those should be explicitly listed? | ||||
* | | prosodyctl: Add 'shell' to command listing | Kim Alvefur | 2021-07-15 | 1 | -1/+2 |
| | | |||||
* | | prosodyctl: Add 'check' to command listing (fixes #1622) | Kim Alvefur | 2021-05-30 | 1 | -0/+10 |
| | | | | | | | | | | Along with infrastructure for the other commands that live in external modules. | ||||
* | | prosodyctl: Reorganize help / command list | Kim Alvefur | 2021-01-22 | 1 | -7/+15 |
| | | |||||
* | | prosodyctl: Report OpenSSL version | Kim Alvefur | 2021-05-12 | 1 | -0/+4 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -0/+4 |
|\| | |||||
| * | prosodyctl about: Report libexpat version if known | Matthew Wild | 2021-05-11 | 1 | -1/+5 |
| | | |||||
| * | prosodyctl: check config: Add 'gc' to list of global options | Matthew Wild | 2021-04-30 | 1 | -1/+1 |
| | | |||||
* | | prosodyctl: Add reference to #1602 (plugin installer docs) in comment | Kim Alvefur | 2021-01-21 | 1 | -0/+1 |
| | | |||||
* | | prosodyctl: Move message after condition | Kim Alvefur | 2021-01-21 | 1 | -1/+1 |
| | | | | | | | | If the condition is false, the message becomes a lie! | ||||
* | | prosodyctl: Fix copypaste oversight | Kim Alvefur | 2021-01-21 | 1 | -2/+2 |
| | | |||||
* | | prosodyctl: Abort if no plugin source specified for the installer | Kim Alvefur | 2021-01-21 | 1 | -1/+7 |
| | | | | | | | | Better than having a non-working default. | ||||
* | | prosodyctl: Move UI related calls out of util.prosodyctl | Kim Alvefur | 2021-01-21 | 1 | -0/+5 |
| | | | | | | | | | | I think this follows the general separation of duties between prosodyctl and util.prosodyctl better. | ||||
* | | prosodyctl: Use luarocks status code as exit code | Kim Alvefur | 2021-01-21 | 1 | -3/+6 |
| | | | | | | | | Enables some shell level error handling | ||||
* | | prosodyctl: Remove non-existant command from hidden commands | Kim Alvefur | 2021-01-05 | 1 | -1/+1 |
| | | | | | | | | | | Apparently there existed a plugin installer for a brief time in 2010, between c5d3905c98a6 and 8f78e8164032 |