Skip to content

only decode the first block of yaml #7

@aloisio31

Description

@aloisio31

yaml:

---
hooks:
  AfterInstall:
    - location: /Users/derekmorgan/src/deploy-plugin/afterinstall.sh
      timeout: 2
    - location: /Users/derekmorgan/src/deploy-plugin/afterinstall.sh
      timeout: 2
files:
  - source: ./my-file.txt
    destination: /temp

lua:

tprint(require('yaml').eval(s), 1)
  hooks:
    AfterInstall:
      1:
        location: /Users/derekmorgan/src/deploy-plugin/afterinstall.sh
        timeout: 2
      2:
        location: /Users/derekmorgan/src/deploy-plugin/afterinstall.sh
        timeout: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions