Hi all. Yesterday, I sat down and wrote the attached for the paludis package manager for Gentoo. In so doing, I encountered a few questions and quirks I'd like to comment on/ask about: 1) The last thing I did, was making a function that checked if any of the "actions" had been chosen yet. I did this firstly so that it wouldn't suggest other actions when you'd already picked one, and it would be nice to have the action independent options only available after an action had been chosen. The problem is just that the action catches itself, ie. "paludis --sync" requires an argument, but since the function triggers on the "--sync", the completions for the "--sync" options aren't shown. Is there a better way to go about what I want? 2) I *know* there were other things, but alas, they, obviously, slipped off me mind as I sat to write these feeble thoughts down. C'est la vie.
Please, have a look-over of the completions as they are, and let me know if you see any room for improvement. I need to make functions to parse the various --list-* options, instead of trawling /usr/portage and /var/db/pkg - as those might not be all inclusive, whereas using paludis' own functions should return everything that paludis can actually see (and thus be able to use complete -X instead of complete -u). I've done this for sets and repositories already, and learned some sed along the way. :) -- Frederik 'Freso' S. Olesen <http://freso.dk/>
paludis.fish
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
