t.p._.ZshBuilder(object) : class documentation

Part of twisted.python._shellcomp View Source View In Hierarchy

Known subclasses: twisted.python._shellcomp.ZshSubcommandBuilder

Constructs zsh code that will complete options for a given usage.Options instance, possibly including a list of subcommand names.

Completions for options to subcommands won't be generated because this class will never be used if the user is completing options for a specific subcommand. (See ZshSubcommandBuilder below)

Instance VariablesoptionsThe twisted.python.usage.Options instance defined for this command. (type: twisted.python.usage.Options )
cmdNameThe name of the command we're generating completions for. (type: str )
fileThe file to write the completion function to. (type: file )
Method __init__ Undocumented
Method write Generate the completion function and write it to the output file @return: None
def __init__(self, options, cmdName, file): (source)
Undocumented
def write(self, genSubs=True): (source)
Generate the completion function and write it to the output file
ParametersgenSubsFlag indicating whether or not completions for the list of subcommand should be generated. Only has an effect if the subCommands attribute has been defined on the twisted.python.usage.Options instance. (type: bool )
ReturnsNone
API Documentation for Twisted, generated by pydoctor at 2012-02-14 18:17:43.