mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
feature(cloudcmd) --columns: add ability to set visible columns (#146)
This commit is contained in:
parent
6c9913e5f1
commit
b5f98be162
18 changed files with 115 additions and 30 deletions
|
|
@ -54,19 +54,8 @@ module.exports = (params) => {
|
|||
keys.forEach((name) => {
|
||||
const value = options[name];
|
||||
|
||||
switch(name) {
|
||||
case 'root':
|
||||
validate.root(value);
|
||||
break;
|
||||
|
||||
case 'editor':
|
||||
validate.editor(value);
|
||||
break;
|
||||
|
||||
case 'packer':
|
||||
validate.packer(value);
|
||||
break;
|
||||
}
|
||||
if (/root|editor|packer|columns/.test(name))
|
||||
validate[name](value);
|
||||
|
||||
config(name, value);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue