Skip to content

Simple powershell menu to render interactive console menu

Notifications You must be signed in to change notification settings

drewgreenwell/ps-menu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS-Menu

Simple module to generate interactive console menus (like yeoman)

Examples:

menu @("option 1", "option 2", "option 3")

Example

More useful example:

Example

Installation

You can install it from the PowerShellGallery using PowerShellGet

Install-Module PS-Menu

Features

  • Returns value of selected menu item
  • Returns index of selected menu item (using -ReturnIndex switch)
  • Returns an array of items (using -MultiSelect switch)
  • Display an array of commands with list items (using -commands param)
  • Navigation with up/down arrows
  • Navigation with j/k (vim style)
  • Longer list scroll within window
  • 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!

About

Simple powershell menu to render interactive console menu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%