custom-menu-cli
Version:
Menu interativo baseado em JSON para execução de comandos no terminal
48 lines (47 loc) • 1.01 kB
JSON
{
"name": "custom-menu-cli",
"description": "JSON-based terminal menu",
"options": [
{
"id": "1",
"name": "Projeto A",
"type": "navigation",
"options": [
{
"id": "1.1",
"name": "Down Service",
"type": "action",
"command": "echo 'Down A'",
"confirm": true
},
{
"id": "1.2",
"name": "Up Service",
"type": "action",
"command": "echo 'Up A'"
},
{
"id": "1.3",
"name": "Restart Project A (from inside)",
"type": "custom-action",
"idList": ["1.1", "1.2"],
"confirm": true
}
]
},
{
"id": "2",
"name": "Restart All",
"type": "custom-action",
"idList": ["1.1", "1.2"],
"confirm": true
},
{
"id": "3",
"name": "Restart Project A (Nested)",
"type": "custom-action",
"idList": ["1.3"],
"confirm": true
}
]
}