mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: client: menu: aleman: add
This commit is contained in:
parent
83a1e527e5
commit
08b5c6b2b5
15 changed files with 80 additions and 15 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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)$/;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue