testsuite: Assert that testsuite ways are known
[ghc.git] / hadrian / completion.sh
1 #!/usr/bin/env bash
2
3 hadrian=$(cd hadrian; cabal new-exec which hadrian; cd ..)
4 all_settings=$($hadrian autocomplete --complete-setting="$@" --quiet)
5
6 complete -W "$all_settings" hadrian/build.sh
7 complete -W "$all_settings" hadrian/build.cabal.sh