# HG changeset patch # User Augie Fackler # Date 1603598353 14400 # Node ID 1b863525992d6b070d2cae3e5c05a51114913b99 # Parent 55aa151f3567184304884913f455035776ffd637 icargo: hacky tool to auto-run cargo for me diff --git a/unixSoft/bin/icargo b/unixSoft/bin/icargo new file mode 100755 --- /dev/null +++ b/unixSoft/bin/icargo @@ -0,0 +1,12 @@ +#!/usr/bin/env zsh +if [ -z "$1" ] ; then + echo 'usage: icargo [verb]' + exit 1 +fi +caretaker -w <(cat <<"EOF" +[[watch]] +name = "cargo $1" +path = "src/**/[!.]*.rs" +command = "sh -c \"clear; cargo test $@\"" +EOF +)