#!/usr/bin/env bash
#
# This project doesn't have any complicated scripting
# needs so there's not much here. But some dog-fooding
# seems appropriate...

# Push to cargo repo
publish() {
  cargo publish
}

# Run against tests/script.sh
test_no_param() {
  cargo run tests/script.sh
}

test_with_param() {
  cargo run tests/script.sh some_function
}

runsh $(basename "$0") "$@" || "$@"
