Date: 2020/10/21 21:49:43 UTC-07:00
Type: Denizen Script
testCmd:
type: command
name: mycmd
description: My command.
usage: /mycmd
script:
# myMap In YAML form:
# dog:
# name: Bill
# sound:
# type: BARK
# volume: '10'
# features:
# - eat
# - sleep
- define myMap <map[map@dog/map@features&fsli@el@eat&pipeel@sleep&pipe&pipesound&fsmap@volume&fsel@10&pipetype&fsel@BARK&pipe&pipename&fsel@Bill&pipe|]>
- run testTask def:<list_single[<[myMap]>]>|hello
testTask:
type: task
definitions: testMap|text
script:
- narrate <[testMap].to_yaml>
- narrate <[text]>