Hi!

I've created a initial (and very basic) pass at target name completion
for Ant build files.  It still needs to grab the target descriptions
as well as include targets included from other build files.    I based
it off the ant completion provided by Zsh.

Comments, suggestions and improvements are welcome.

Thanks!

Nate

---

# Function to parse a build.xml file generate a list of targets
function __fish_complete_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

complete -x -c ant -a "(__fish_complete_targets)"

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to