diff options
Diffstat (limited to 'Omni/Ide/typecheck.sh')
-rwxr-xr-x | Omni/Ide/typecheck.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Omni/Ide/typecheck.sh b/Omni/Ide/typecheck.sh new file mode 100755 index 0000000..9de8b54 --- /dev/null +++ b/Omni/Ide/typecheck.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +### +### typecheck a given target +### +### > typecheck.sh <target..> +### +### Uses repl.sh to provision the environment for target, then runs the +### appropriate typechecker for the given module. +### +help() { + sed -rn 's/^### ?//;T;p' "$0" +} +if [[ $# == 0 ]] || [[ "$1" == "-h" ]]; then + help + exit 1 +fi +target="$1" +repl.sh --cmd "python -m mypy $target" "$target" |