| 1 | def main [hook: string, event: string] { |
| 2 | let input = $in | from json |
| 3 | {event: $event, input: $input} | to json | save --force $env.ROUNDABOUT_TEST_INPUT |
| 4 | if ($env.ROUNDABOUT_TEST_OUTPUT? | is-not-empty) { |
| 5 | print --no-newline $env.ROUNDABOUT_TEST_OUTPUT |
| 6 | } |
| 7 | exit ($env.ROUNDABOUT_TEST_EXIT? | default 0 | into int) |
| 8 | } |