This repository has been archived on 2022-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-19 21:02:08 -05:00
|
|
|
export enum MenuType {
|
|
|
|
ExecCommand,
|
|
|
|
Reboot,
|
|
|
|
Shutdown,
|
|
|
|
SubMenu,
|
|
|
|
}
|
|
|
|
|
2022-04-20 17:31:34 -05:00
|
|
|
export interface MenuCommand {
|
|
|
|
exe: string,
|
|
|
|
args?: string[],
|
|
|
|
wrap?: boolean,
|
|
|
|
}
|
|
|
|
|
2022-04-19 21:02:08 -05:00
|
|
|
export interface MenuConfig {
|
|
|
|
display: string,
|
|
|
|
type: MenuType,
|
2022-04-20 17:31:34 -05:00
|
|
|
command?: MenuCommand,
|
2022-04-19 21:02:08 -05:00
|
|
|
subMenu?: MenuConfig[],
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MenuPrinter {
|
2022-04-20 08:05:21 -05:00
|
|
|
getSelection(): Promise<MenuConfig>;
|
2022-04-19 21:02:08 -05:00
|
|
|
}
|