from prompt_toolkit import prompt
from prompt_toolkit.completion import NestedCompleter

completer = NestedCompleter.from_nested_dict({
    'show': {
        'version': None,
        'clock': None,
        'ip': {
            'interface': {'brief'}
        }
    },
    'exit': None,
})

text = prompt('# ', completer=completer)
print('You said: %s' % text)
c1cd2f5f9e5e52dc2bf5ffff2efffc7cf49b42f3
<mask token>

<mask token>
print('You said: %s' % text)

<mask token>
completer = NestedCompleter.from_nested_dict({'show': {'version': None,
    'clock': None, 'ip': {'interface': {'brief'}}}, 'exit': None})
text = prompt('# ', completer=completer)
print('You said: %s' % text)

from prompt_toolkit import prompt
from prompt_toolkit.completion import NestedCompleter
completer = NestedCompleter.from_nested_dict({'show': {'version': None,
    'clock': None, 'ip': {'interface': {'brief'}}}, 'exit': None})
text = prompt('# ', completer=completer)
print('You said: %s' % text)

from prompt_toolkit import prompt
from prompt_toolkit.completion import NestedCompleter

completer = NestedCompleter.from_nested_dict({
    'show': {
        'version': None,
        'clock': None,
        'ip': {
            'interface': {'brief'}
        }
    },
    'exit': None,
})

text = prompt('# ', completer=completer)
print('You said: %s' % text)