- Preparing search index...
- The search index is not available
nope-js-node
Function createInteractiveMenu
-
Parameters
-
-
options: {
addExit?: boolean;
exitCallback?: (() => Promise<void>);
} = {}
-
Optional
addExit?: boolean
-
Optional
exitCallback?: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
Returns Promise<void>
Helper to create an interactive menu using Inquirer. Therefore definition of the menu is required. Once, a choice is selected -> the provided callback is called.
Normally, in the menu, a 'back' item is added to go back to the upper menu. Additionally the user gets an 'exit' option to leave the app.