-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utils): extends show_selection helper
This commit updates the show_selection helper in selector.py to accept additional arguments and extend its capabilities to show better selection prompts to the user. This change specifically adds two arguments, show_keys and highlight_item. If show_keys is set to true then for dict type inputs, the keys will be presented to the user in the prompt. If highlighter_item is passed in the args, then item matching the value will be displayed in bold and italics.
- Loading branch information
1 parent
34b5c0b
commit ce1a927
Showing
1 changed file
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters