Skip to content

only decode the first block of yaml #7

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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