mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add contest/edit and contest/del hook
This commit is contained in:
7 files changed
+21
-16
No files matched your search
@@ -22,10 +22,10 @@ if (!argv.args[0] || argv.args[0] === 'cli') {
|
||||
const addons = getAddons();
|
||||
for (const i of addons) {
|
||||
try {
|
||||
require(`${i}/command.ts`).apply(cli);
|
||||
require(`${i}/command.ts`).register(cli);
|
||||
} catch (e) {
|
||||
try {
|
||||
require(`${i}/command.js`).apply(cli);
|
||||
require(`${i}/command.js`).register(cli);
|
||||
} catch (err) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user