diff options
author | Kim Alvefur <zash@zash.se> | 2021-03-05 13:02:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-03-05 13:02:37 +0100 |
commit | cd641dca64af1b47fb71235a4915ab7c91b4cf90 (patch) | |
tree | b9f3b14a42be0f8ac70f532db4c6ec2cbfdcd0d2 /spec/util_dataforms_spec.lua | |
parent | 71cb57df5191da7962185fba8c0dd5847dfd699c (diff) | |
download | prosody-cd641dca64af1b47fb71235a4915ab7c91b4cf90.tar.gz prosody-cd641dca64af1b47fb71235a4915ab7c91b4cf90.zip |
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
Diffstat (limited to 'spec/util_dataforms_spec.lua')
0 files changed, 0 insertions, 0 deletions