Skip to content

zlliu246/cli_select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli_select

A package that allows MCQ select in terminal/CLI

Installation

pip install cli_select

Quickstart

use Up and Down arrow keys to select your option use Enter key to confirm your selection

from cli_select import select

selected = select(
    "Which is your favourite fruit?", 
    ["apple", "orange", "pear", "pineaple", "durian"],
    color="green",
)

print(f"you selected {selected}")

# Select favourite fruit (Up/Down to navigate, Enter to select):

# => apple
# orange
# pear
# pineaple
# durian

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages