Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisseroka/ps-menu
Simple powershell menu to render interactive console menu
https://github.com/chrisseroka/ps-menu
Last synced: 30 days ago
JSON representation
Simple powershell menu to render interactive console menu
- Host: GitHub
- URL: https://github.com/chrisseroka/ps-menu
- Owner: chrisseroka
- License: mit
- Created: 2016-07-06T20:30:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-03T21:38:37.000Z (9 months ago)
- Last Synced: 2024-08-03T22:14:16.054Z (4 months ago)
- Language: PowerShell
- Size: 450 KB
- Stars: 229
- Watchers: 10
- Forks: 39
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-powershell - PS-Menu - A PowerShell module for creating dynamic menus in the console. 🚧 (📚 UI)
- jimsghstars - chrisseroka/ps-menu - Simple powershell menu to render interactive console menu (PowerShell)
README
# PS-Menu
Simple module to generate interactive console menus (like yeoman)# Examples:
```powershell
menu @("option 1", "option 2", "option 3")
```
![Example](https://github.com/chrisseroka/ps-menu/raw/master/docs/example1.gif)More useful example:
![Example](https://github.com/chrisseroka/ps-menu/raw/master/docs/example2.gif)
# Installation
You can install it from the PowerShellGallery using PowerShellGet
```powershell
Install-Module PS-Menu
```
# Features* Returns value of selected menu item
* Returns index of selected menu item (using `-ReturnIndex` switch)
* Navigation with `up/down` arrows
* Navigation with `j/k` (vim style)
* Esc key quits the menu (`null` value returned)# Contributing
* Source hosted at [GitHub][repo]
* Report issues/questions/feature requests on [GitHub Issues][issues]Pull requests are very welcome!