#! /bin/sh
case "$1" in 
    test)
        cargo watch -c -s "cargo test \"$2\" --color always &> /dev/stdout | head -n 50"
    ;;
    *)
        cargo watch -c -s 'cargo check --color always &> /dev/stdout | head -n 50'
    ;;
esac
