Part of twisted.python.zshcomp View Source View In Hierarchy
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 255 | Method | __init__ | |
| 330 | Method | write | Write the zsh completion code to the file given to __init__ |
| 340 | Method | writeHeader | This is the start of the code that calls _arguments |
| 347 | Method | writeOptions | Write out zsh code for each option in this command |
| 357 | Method | writeExtras | Write out the "extras" list. These are just passed verbatim to the |
| 367 | Method | writeFooter | Write the last bit of code that finishes the call to _arguments |
| 374 | Method | verifyZshNames | Ensure that none of the names given in zsh_* variables are typoed |
| 396 | Method | excludeStr | Generate an "exclusion string" for the given option |
| 439 | Method | makeExcludesDict | |
| 471 | Method | writeOpt | Write out the zsh code for the given argument. This is just part of the |
| 523 | Method | getAction | Return a zsh "action" string for the given argument |
| 538 | Method | getActionDescr | Return the description to be used when this argument is completed |
| 548 | Method | getDescription | Return the description to be used for this argument |
| 579 | Method | getShortOption | Return the short option letter or None |
| 590 | 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
| |