Mercurial > dotfiles
comparison unixSoft/bin/icargo @ 504:1b863525992d
icargo: hacky tool to auto-run cargo for me
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 24 Oct 2020 23:59:13 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
503:55aa151f3567 | 504:1b863525992d |
---|---|
1 #!/usr/bin/env zsh | |
2 if [ -z "$1" ] ; then | |
3 echo 'usage: icargo [verb]' | |
4 exit 1 | |
5 fi | |
6 caretaker -w <(cat <<"EOF" | |
7 [[watch]] | |
8 name = "cargo $1" | |
9 path = "src/**/[!.]*.rs" | |
10 command = "sh -c \"clear; cargo test $@\"" | |
11 EOF | |
12 ) |