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.
zeropod/src/main.ts

32 lines
541 B
TypeScript

import { Menu } from './menu/menu';
import { MenuType } from './menu/interface';
const menu = new Menu([
{
display: "df -h",
type: MenuType.ExecCommand,
command: ["df", "-h"],
},
{
display: "Games",
type: MenuType.SubMenu,
subMenu: [
{
display: "Chess",
type: MenuType.ExecCommand,
command: ["df", "-h"],
},
],
},
{
display: "Reboot",
type: MenuType.Reboot,
},
{
display: "Shutdown",
type: MenuType.Shutdown,
},
], true);
menu.getSelection();