Software / code / prosody
Comparison
AUTHORS @ 11423:0a10bb3b129b
util.prosodyctl.shell: Allow passing a single command as argument
Test procedure:
$ prosodyctl shell 'server:version()'
Expect:
> OK: hg:926d53af9a7a
$ prosodyctl shell 'server:version()' 'hello'
Expect:
> Only one command is supported as argument
$ prosodyctl shell 'lorem ipsum'; echo $?
Expect:
> Sorry, I couldn't understand that... console:1: syntax error near 'show'
> 1 (error code)
Thanks Menel for mentioning the feature
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 05 Mar 2021 13:02:37 +0100 |
| parent | 5403:d7ecf6cd584e |
comparison
equal
deleted
inserted
replaced
| 11422:fa5a23d7aabc | 11423:0a10bb3b129b |
|---|