Skip to content

rtorres90/cli-menu-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CliMenuHelper.

CliMenuHelper is a tool to help in the creation of cli menus.

Example:

from CliMenuHelper import CliMenuHelper
cmh = CliMenuHelper(title="Please select an option", options=["Go to space", "Go to a new dimension"])
cmh.start()
Out:
##############################
# Please select an option    #
##############################
# 1. Go to space             #
# 2. Go to a new dimension   #
# Press q to exit.           #
##############################
Select the option:

Possible outputs:

  • If you select a listed option, CliMenuHelper will return the option that you selected.
  • If you do not select a listed option, the menu will reload.
  • If you select the option to exit, CliMenuHelper will return None

How to install.

pip install CliMenuHelper

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages