prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Can you tell me how to enter values in multi-layer nesting, can there be a prompt?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NestedCompleter.from_nested_dict example shown in the issue and determine how nested completion currently handles input after show. Clarify whether the request is for completion suggestions, a prompt, or argument parsing, then define the expected behavior for show version, show clock, and show ip interface brief before identifying the relevant implementation and tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100