binaryninja.bncompleter.Completer

class Completer(namespace=None)[source]
__init__(namespace=None)[source]

Create a new completer for the command line.

Completer([namespace]) -> completer instance.

If unspecified, the default namespace where completions are performed is __main__ (technically, __main__.__dict__). Namespaces should be given as dictionaries.

Completer instances should be used as the completion mechanism of readline via the set_completer() call:

readline.set_completer(Completer(my_namespace).complete)

Methods

__init__([namespace])

Create a new completer for the command line.

attr_matches(text)

Compute matches when text contains a dot.

complete(text, state)

Return the next possible completion for ‘text’.

global_matches(text)

Compute matches when text is a simple name.