File: completion.sh

package info (click to toggle)
haskell-hadrian 9.6.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,824 kB
  • sloc: haskell: 9,765; python: 370; makefile: 189; ansic: 176; sh: 70
file content (7 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#!/usr/bin/env bash

hadrian=$(cd hadrian; cabal new-exec which hadrian; cd ..)
all_settings=$($hadrian autocomplete --complete-setting="$@" --quiet)

complete -W "$all_settings" hadrian/build
complete -W "$all_settings" hadrian/build-cabal