summaryrefslogtreecommitdiff
path: root/Biz/Ide/ship
blob: 33197c8c91e46ab54b68e26b1e3db20601cf60ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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=$(fd -t l . "$CODEROOT/_" \
      | fzf --multi \
      | sed "s,$CODEROOT/_/nix/,,g"
    )
  fi
  lint ${stuff[@]}
  bild --test ${stuff[@]}
  for thing in ${stuff[@]}
  do
    push $thing
  done
##