Document how to provide an empty list; add examples of empty arguments (#308)
This commit is contained in:
parent
f672262950
commit
6a4618d3d3
|
@ -179,6 +179,25 @@ modules:
|
||||||
- "this is a binary"
|
- "this is a binary"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you don't need to provide arguments at all,
|
||||||
|
you can remove `arguments`, or provide it with an empty list:
|
||||||
|
```yaml
|
||||||
|
modules:
|
||||||
|
mod_cron:
|
||||||
|
tasks:
|
||||||
|
- time: 10
|
||||||
|
units: seconds
|
||||||
|
command: connected_users
|
||||||
|
- time: 15
|
||||||
|
units: seconds
|
||||||
|
ctl: delete_expired_pubsub_items
|
||||||
|
- time: 20
|
||||||
|
units: seconds
|
||||||
|
module: mod_pubsub
|
||||||
|
function: delete_expired_items
|
||||||
|
arguments: []
|
||||||
|
```
|
||||||
|
|
||||||
ejabberd Commands
|
ejabberd Commands
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue