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__ |
| Method | writeHeader | This is the start of the code that calls _arguments |
| Method | writeOptions | Write out zsh code for each option in this command |
| Method | writeExtras | Write out the "extras" list. These are just passed verbatim to the |
| Method | writeFooter | Write the last bit of code that finishes the call to _arguments |
| Method | verifyZshNames | Ensure that none of the names given in zsh_* variables are typoed |
| 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 |
| Method | getAction | Return a zsh "action" string for the given argument |
| Method | getActionDescr | Return the description to be used when this argument is completed |
| Method | getDescription | Return the description to be used for this argument |
| Method | getShortOption | Return the short option letter or None |
| Method | addAdditionalOptions | Add additional options to the optFlags and optParams lists. |
| 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 | long | 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 | long | The long name of the option (i.e. "verbose" instead of
"v")
(type: str
) |
| Returns | None
| |
| Returns | str
| |
| Returns | str
| |
| Returns | None
| |