#!/usr/bin/env bash # # ship ... # # 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=$(fd -t l . "$BIZ_ROOT/_" \ | fzf --multi \ | sed "s,$BIZ_ROOT/_/nix/,,g" ) fi lint ${stuff[@]} bild --test ${stuff[@]} for thing in ${stuff[@]} do push $thing done ##