(key: string)
| 128 | if (!lines.length) return undefined; |
| 129 | const level = Math.min(...lines.map(line => line.keyIndent)); |
| 130 | const top = (key: string) => lines.findIndex(line => line.keyIndent === level && !line.dash && line.key === key); |
| 131 | const on = top('on'), jobs = top('jobs'), name = top('name'); |
| 132 | if (on < 0 || jobs < 0) return undefined; |
| 133 | const triggers = lines[on].value ? flow(lines[on].value).map(event => ({ event })) : children(lines, on).flatMap(index => { |