atagen

roundabout

public
Star0
Watch0
caac091f257ad8d53409925aac0d377b716994f8
1
ssh://brewery@pls.lobotomise.me:33/atagen/roundabout.git
tests/mock-rabt.nu8 lines325 B
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
}