@gud/cli-menu
v1.0.0-beta.5
Published
Adds command menus to Gud CLI apps.
Downloads
8
Readme
Gud CLI Command Menu Plugin
A Gud CLI plugin that prompts the user to select a subcommand when required.
npm install @gud/cli-menuimport { run } from '@gud/cli';
import { menu } from '@gud/cli-menu';
run({
plugins: [
menu({
title: 'Foo CLI',
titleColors: ['#D89DFF', '#519BFF'],
})
],
});
After the user selects a subcommand, the command will be resolved and if it also
requires a subcommand, the user will be prompted again, but this time can also
select ↩ back to go back to the previous menu. This will continue until the
user has selected all required subcommands.

