prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.11k stars 717 forks source link

Can you tell me how to enter values in multi-layer nesting, can there be a prompt? #1744

Open caicai000 opened 1 year ago

caicai000 commented 1 year ago

completer = NestedCompleter.from_nested_dict({ 'show': { 'version': None, 'clock': None, 'ip': { 'interface': {'brief'} } }, 'exit': None, }) I want to type show abc and then also get the version clock and ip prompt. like this show adc version

caicai000 commented 1 year ago

Thank you