mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudcmd) rm isOption
This commit is contained in:
parent
89efc7b4b3
commit
5d613886fe
1 changed files with 4 additions and 8 deletions
|
|
@ -179,14 +179,10 @@ function listen(prefix, socket) {
|
|||
}
|
||||
|
||||
function cloudcmd(prefix, plugins, modules) {
|
||||
const isOption = (name) => {
|
||||
return config(name);
|
||||
};
|
||||
|
||||
const online = apart(isOption, 'online');
|
||||
const cache = apart(isOption, 'cache');
|
||||
const diff = apart(isOption, 'diff');
|
||||
const zip = apart(isOption, 'zip');
|
||||
const online = apart(config, 'online');
|
||||
const cache = apart(config, 'cache');
|
||||
const diff = apart(config, 'diff');
|
||||
const zip = apart(config, 'zip');
|
||||
const dir = DIR_ROOT;
|
||||
|
||||
const ponseStatic = ponse.static(dir, {cache});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue