Coverage for certbot/display/completer.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Provides Tab completion when prompting users for a path.""" # readline module is not available on all systems
"""Provides Tab completion when prompting users for a path.
This class is meant to be used with readline to provide Tab completion for users entering paths. The complete method can be passed to readline.set_completer directly, however, this function works best as a context manager. For example:
with Completer(): raw_input()
In this example, Tab completion will be available during the call to raw_input above, however, readline will be restored to its previous state when exiting the body of the with statement.
"""
"""Provides path completion for use with readline.
:param str text: text to offer completions for :param int state: which completion to return
:returns: possible completion for text or ``None`` if all completions have been returned :rtype: str
"""
# readline can be implemented using GNU readline, pyreadline or libedit # which have different configuration syntax else:
|