alpha-quadrant/dev-java/gradle-bin/files/gradle-bin.bash-completion
2012-01-04 15:39:28 +01:00

15 lines
319 B
Bash

#!/bin/bash
_gradle_complete()
{
local cur tasks
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
tasks='clean compile dists javadoc jar test war'
cur=`echo $cur | sed 's/\\\\//g'`
COMPREPLY=($(compgen -W "${tasks}" ${cur} | sed 's/\\\\//g') )
}
complete -F _gradle_complete -o filenames gradle