fish-shell/share/functions/__fish_complete_ant_targets.fish
axel 4b9dcf1cf2 Add ant target completions, written by Nate Drake
darcs-hash:20061205235252-ac50b-112c0ff335e456ed0b419c6c5c7a889c517baed1.gz
2006-12-06 09:52:52 +10:00

7 lines
181 B
Fish

function __fish_complete_ant_targets -d "Print list of targets from build.xml"
if test -f build.xml
sed -n "s/ *<target name=[\"']\([^\"']*\)[\"'].*/\1/p" < build.xml
end
end