mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore: cloudcmd
This commit is contained in:
parent
6e778a35ba
commit
4b84d20bb0
17 changed files with 121 additions and 132 deletions
|
|
@ -1,10 +1,9 @@
|
|||
/* global CloudCmd */
|
||||
import exec from 'execon';
|
||||
import {tryToCatch} from 'try-to-catch';
|
||||
import {js} from 'load.js';
|
||||
import {js as loadJS} from 'load.js';
|
||||
import pascalCase from 'just-pascal-case';
|
||||
|
||||
const loadJS = js;
|
||||
const noJS = (a) => a.replace(/.js$/, '');
|
||||
|
||||
/**
|
||||
|
|
@ -50,9 +49,8 @@ export const loadModule = (params) => {
|
|||
const [e, a] = await tryToCatch(m);
|
||||
|
||||
if (e)
|
||||
return console.error(e);
|
||||
return;
|
||||
|
||||
return await a.show(...args);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue