Document how to provide an empty list; add examples of empty arguments (#308)

This commit is contained in:
Badlop 2022-04-12 11:33:33 +02:00
parent f672262950
commit 6a4618d3d3
1 changed files with 19 additions and 0 deletions

View File

@ -179,6 +179,25 @@ modules:
- "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
-----------------