feature: client: menu: aleman: add

This commit is contained in:
coderiaser 2025-09-01 20:03:11 +03:00
parent 83a1e527e5
commit 08b5c6b2b5
15 changed files with 80 additions and 15 deletions

View file

@ -64,7 +64,7 @@ function cloudcmd(params) {
if (/root/.test(name))
validate.root(value, config);
if (/editor|packer|themes/.test(name))
if (/editor|packer|themes|menu/.test(name))
validate[name](value);
if (/prefix/.test(name))

View file

@ -34,6 +34,13 @@ export const editor = (name, {exit = _exit} = {}) => {
exit('cloudcmd --editor: could be "dword", "edward" or "deepword" only');
};
export const menu = (name, {exit = _exit} = {}) => {
const reg = /^(supermenu|aleman)$/;
if (!reg.test(name))
exit('cloudcmd --menu: could be "supermenu" or "aleman" only');
};
export const packer = (name, {exit = _exit} = {}) => {
const reg = /^(tar|zip)$/;