| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This can be useful to run scripts and stuff with access to the same Lua paths
as Prosody uses.
|
|
|
|
| |
The 'about' command remains for backwards compatibility, but hidden.
|
|
|
|
| |
Leftover after 854df134274f
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
This broke if the error message contained a format specified such as '%s'.
|
| | |
|
| |
| |
| |
| |
| | |
Now both require"util.foo" and require"prosody.util.foo" should be
equivalent.
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Needed since it checks the manifest of the repository and most likely
defaults to luarocks.org unless specified
|
|
|
|
| |
Good to know since it affects how well the shell works
|
|
|
|
|
| |
Parsing --flags puts it into 'opts', so --outdated wasn't passed to
luarocks, breaking that functionality
|
|
|
|
| |
Because why not I guess. This mirrors the corresponding luarocks command
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Only when the help is shown because of invalid arguments should a
non-zero status code be returned to indicate a problem.
|
|
|
|
| |
Reads nicer, but adds more code. Can always be reverted later I suppose.
|
|
|
|
| |
instead
|
|
|
|
|
|
| |
By how old the commands are?
Or how disruptive the changes are?
Or just by what feels best?
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
lfs or WHAT
How did this even happen?
|
| |
| |
| |
| | |
It will do nothing in a VirtualHost section for example.
|
| |
| |
| |
| | |
Should Plugin really be first? What order makes the most sense?
|
| |
| |
| |
| |
| | |
This hides a whole bunch of subcommands tho, maybe those should be
explicitly listed?
|
| | |
|
| |
| |
| |
| |
| | |
Along with infrastructure for the other commands that live in external
modules.
|
| | |
|
| | |
|
|\| |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
If the condition is false, the message becomes a lie!
|
| | |
|
| |
| |
| |
| | |
Better than having a non-working default.
|
| |
| |
| |
| |
| | |
I think this follows the general separation of duties between prosodyctl
and util.prosodyctl better.
|
| |
| |
| |
| | |
Enables some shell level error handling
|
| |
| |
| |
| |
| | |
Apparently there existed a plugin installer for a brief time in 2010,
between c5d3905c98a6 and 8f78e8164032
|
| | |
|
| |
| |
| |
| | |
To be replaced with config option in future commit
|
| |
| |
| |
| |
| | |
"verb subject" feels better than "subject verb", especially since the
subject (module) is optional.
|
| |
| |
| |
| | |
luaunbound, lunbound, lua-unbound ... "kärt barn har många namn"
|
| |
| |
| |
| |
| | |
Some modules have _VERSION = "LuaModule x.y.z", so it is a bit weird
to show the name twice.
|
| |
| |
| |
| | |
E.g. 'lxp' isn't that easy to guess that it's LuaExpat
|