Paste #76742: Untitled Paste

Date: 2020/10/21 21:49:43 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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&amppipeel@sleep&amppipe&pipesound&fsmap@volume&ampfsel@10&amppipetype&ampfsel@BARK&amppipe&pipename&fsel@Bill&pipe|]>
      - run testTask def:<list_single[<[myMap]>]>|hello

testTask:
   type: task
   definitions: testMap|text
   script:
   - narrate <[testMap].to_yaml>
   - narrate <[text]>