• Paweł Lenart's avatar
    Remove warning lines from phing completion · c51823c0
    Paweł Lenart authored
    Remove "Warning:" lines from phing targets list. Warning lines are
    returned by phing when a target has no tasks or dependencies.
    
    # Conflicts:
    #	plugins/phing/phing.plugin.zsh
    c51823c0
phing.plugin.zsh 209 Bytes
_phing () {
  if [ -f build.xml ]; then
    compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
  fi
}

compdef _phing phing