ohmyzsh/plugins/phing/phing.plugin.zsh
Paweł Lenart a1ffa2c965 Remove warning lines from phing completion
Remove "Warning:" lines from phing targets list. Warning lines are
returned by phing when a target has no tasks or dependencies.
2014-12-16 08:34:50 +01:00

8 lines
250 B
Bash

_phing () {
if [ -f build.xml ]; then
PHING_TARGETS=$(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
compadd $(echo $PHING_TARGETS)
fi
}
compdef _phing phing