Show-ConsoleMenu
Shows a menu until the user exits.
Syntax
Description
Shows a menu until the user exits.
Shell is an app: a title bar with the breadcrumb, a sidebar (it folds into the breadcrumb in narrow windows), the content pane with the open item's list, form, page or review, and a footer generated from the keys that work right now. Classic is one centred menu; Inline is a list in the scrollback for scripts. Everywhere: Esc goes back, Ctrl+K (or :) opens the command palette, ? shows every key, Ctrl+Q leaves (asking first when a form has unsaved changes). Item actions run on the pipeline thread. Selections and form values survive navigation; -AppName stores presets, and with -RememberLastChoices the last choices.
Examples
EXAMPLE 1
Show-ConsoleMenu -Menu 'Value'Parameters
- -AppName String
- The app name presets and remembered choices are stored under (default: the menu title).
- -Layout MenuLayout
- The layout: Auto (the menu's own, or Shell when items open content), Classic, Shell or Inline.
- Possible values:
Auto,Classic,Shell,Inline - The menu from New-ConsoleMenu.
- -Mode InteractionMode
- Forces how to interact: Rich, Line or Accessible.
- Possible values:
Rich,Line,Accessible - -NoCommandPalette SwitchParameter
- Turns the command palette off.
- -RememberLastChoices SwitchParameter
- Remembers selections and form answers between runs.
- -StorageRoot String
- The folder that holds the app's storage folder (default: per user).
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.