atagen

roundabout

public
Star0
Watch0
e9a5f5a41749831b9717b998d187ea5ca383b618
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
}