#!/usr/bin/env bash
#
# ship <target>...
#
# lint, bild, test, and push one or more targets. if no targets are supplied,
# ship everything we know how to ship
##
  set -eu
  stuff=(${@})
  if [[ ${#stuff[@]} -eq 0 ]]
  then
    stuff=(
      Biz/Cloud.nix
      Biz/Dev.nix
      Biz/Que.nix
      # Hero/Prod.nix # disabled bc herocomcis.app domain is broken
    )
  fi
  lint ${stuff[@]}
  bild --test ${stuff[@]}
  for thing in ${stuff[@]}
  do
    push $thing
  done
##