mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: cloudcmd: help: require -> import
This commit is contained in:
parent
2a97ac66fb
commit
8ccec23d6c
1 changed files with 5 additions and 1 deletions
|
|
@ -316,7 +316,11 @@ async function readConfig(name) {
|
|||
}
|
||||
|
||||
async function help() {
|
||||
const bin = require('../json/help.json');
|
||||
const {default: bin} = await import('../json/help.json', {
|
||||
with: {
|
||||
type: 'json'
|
||||
}
|
||||
});
|
||||
const forEachKey = await simport('for-each-key');
|
||||
const currify = await simport('currify');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue