[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] pulp-admin bash completion script added



On Thu, Oct 06, 2011 at 04:36:00PM -0700, Mike McCune wrote:
> 
> 
> nice, does this get auto-generated so if someone adds a new command
> it will add new completion paths?
> 

No.  You'd need a script to introspect your .py files, or build a client
object that loads all the commands and inspects the optparse objects to see
what options have been defined.  Could definitely be very valuable if written
generically enough to work with the common <command> <subcommand> --option
model.

--
-- James Slagle
--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]