Software /
code /
prosody
Comparison
util/prosodyctl/check.lua @ 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 | 11303:0d932bf3a0f7 |
child | 11560:3bbb1af92514 |
comparison
equal
deleted
inserted
replaced
11422:fa5a23d7aabc | 11423:0a10bb3b129b |
---|