Part of twisted.python.zshcomp View Source View In Hierarchy
Method | __init__ | |
Method | write | Write the zsh completion code to the file given to __init__ @return:
None |
Method | writeHeader | This is the start of the code that calls _arguments @return:
None |
Method | writeOptions | Write out zsh code for each option in this command @return:
None |
Method | writeExtras | Write out the "extras" list. These are just passed verbatim to
the _arguments call @return: None |
Method | writeFooter | Write the last bit of code that finishes the call to _arguments @return:
None |
Method | verifyZshNames | No summary |
Method | excludeStr | Generate an "exclusion string" for the given option |
Method | makeExcludesDict | |
Method | writeOpt | Write out the zsh code for the given argument. This is just part of the one big call to _arguments |
Method | getAction | Return a zsh "action" string for the given argument @return:
str |
Method | getActionDescr | Return the description to be used when this argument is completed
@return: str |
Method | getDescription | Return the description to be used for this argument @return:
str |
Method | getShortOption | Return the short option letter or None @return: str or
None |
Method | addAdditionalOptions | Add additional options to the optFlags and optParams lists. These will
be defined by 'opt_foo' methods of the Options subclass @return:
None |
Parameters | cmd_name | The name of the command (type: str ) |
options | The twisted.usage.Options instance defined for this command (type: twisted.usage.Options ) | |
file | The file to write the completion function to (type: file ) |
Returns | None |
Returns | None |
Returns | None | |
Raises | ValueError | Raised if unknown option names have been given in zsh_* variables |
Parameters | longname | The long name of the option (i.e. "verbose" instead of
"v") (type: str ) |
buildShort | May be True to indicate we're building an excludes string for the short
option that correspondes to the given long opt (type: bool ) | |
Returns | The generated str |
Returns | A dict that maps each option name appearing in
self.mutuallyExclusive to a list of those option names that is it mutually
exclusive with (can't appear on the cmd line with) |
Parameters | longname | The long name of the option (i.e. "verbose" instead of
"v") (type: str ) |
Returns | None |
Returns | str |
Returns | str |
Returns | str |
Returns | str or None |
Returns | None |