26 lines
399 B
TypeScript
26 lines
399 B
TypeScript
export enum MenuType {
|
|
ExecCommand,
|
|
ExecModule,
|
|
Reboot,
|
|
Shutdown,
|
|
SubMenu,
|
|
}
|
|
|
|
export interface MenuCommand {
|
|
exe: string,
|
|
args?: string[],
|
|
wrap?: boolean,
|
|
}
|
|
|
|
export interface MenuConfig {
|
|
display: string,
|
|
type: MenuType,
|
|
command?: MenuCommand,
|
|
subMenu?: MenuConfig[],
|
|
module?: () => Promise<void>,
|
|
}
|
|
|
|
export interface MenuPrinter {
|
|
getSelection(): Promise<MenuConfig>;
|
|
}
|