Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtorres90/cli-menu-helper
https://github.com/rtorres90/cli-menu-helper
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtorres90/cli-menu-helper
- Owner: rtorres90
- License: gpl-3.0
- Created: 2017-03-25T02:47:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T20:18:39.000Z (almost 8 years ago)
- Last Synced: 2024-12-01T09:55:37.757Z (2 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CliMenuHelper.
==============CliMenuHelper is a tool to help in the creation of cli menus.
Example:
```python
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 NoneHow to install.
---------------```
pip install CliMenuHelper
```