John Villalovos wrote:
> Here is an update for bash-completion to have it use cobbler-completion
>
> John
>   

Background info:  yesterday I wrote a way for cobbler to generate all of 
it's command line info to /var/lib/cobbler/completions at build time, 
and then a script called /usr/bin/cobbler-completion that feeds the bash 
script.  The whole point of this is so the bash completion script can 
help save keystrokes without having to call cobbler and open a cobbler 
API handle every time you hit tab (which can take a while).   This makes 
things a good bit faster.

I've applied the patch above (with a small tweak changing "sorted" as 
that's only valid in python 2.4 and later), though there are still a few 
things it should help complete.

cobbler profile add <tab> should show long options, not files.

cobbler report <tab> should show long options

Basically if cobbler-completion reports any options, they should always 
be shown, and it should only show file completion when 
cobbler-completion returns just the string "*files*".   This will allow 
for files to be completed when long options like "--kernel" are given, 
but we know if the last argument was "--name" then we don't want to show 
files at that point.   (We may later teach it to show all the valid 
cobbler names, however!   That would be neat).

So it's in tree, just not added to the RPM quite yet.   Getting close!

--Michael

> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to