Go to the latest version of this document.

# ``twisted`.`python`.`usage`.`CompleteUserAtHost``

class documentation

`class CompleteUserAtHost(Completer): (source)`

Constructor: `CompleteUserAtHost(descr, repeat)`

View In Hierarchy

A completion action which produces matches in any of these forms:

        <username>
        <hostname>
        <username>@<hostname>

Method | `_shellCode` | Fetch a fragment of shell code representing this action which is suitable for use by the completion system in _shellcomp.py
Instance Variable | `_descr` | Undocumented

Inherited from `Completer`:

Method | `__init__` | No summary
Method | `_description` | Undocumented
Instance Variable | `_repeat` | Undocumented
Property | `_repeatFlag` | Undocumented

def _shellCode(self, optName, shellType): (source)
overrides `twisted.python.usage.Completer._shellCode`

Fetch a fragment of shell code representing this action which is suitable for use by the completion system in _shellcomp.py

Parameters
optName:`str` | The long name of the option this action is being used for.
shellType:`str` | One of the supported shell constants e.g. `twisted.python.usage._ZSH`

_descr: `str` = (source)
overrides `twisted.python.usage.Completer._descr`

Undocumented