update: 更新light-code部分的代码模块
This commit is contained in:
@@ -70,6 +70,20 @@ appManagerCommand
|
||||
console.log('Restart App:', appKey);
|
||||
});
|
||||
|
||||
appManagerCommand
|
||||
.command('reload')
|
||||
.description('重载配置项,对路径的app的内容变更有效')
|
||||
.argument('<app-key-name>', '应用的 key 名称')
|
||||
.action(async (appKey: string) => {
|
||||
const manager = new AssistantApp(assistantConfig);
|
||||
try {
|
||||
await manager.loadConfig();
|
||||
await manager.reload(appKey);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
console.log('Reload App:', appKey);
|
||||
});
|
||||
appManagerCommand
|
||||
.command('delete')
|
||||
.alias('del')
|
||||
|
||||
Reference in New Issue
Block a user