MCPcopy
hub / github.com/alibaba/pont / init

Method init

packages/pont-engine/src/main/Manager.ts:66–81  ·  view source on GitHub ↗
(rootPath: string, configDir: string)

Source from the content-addressed store, hash-verified

64 }
65
66 init(rootPath: string, configDir: string) {
67 const { standardBaseConfig, standardOirginConfigs } = Config.getStandardConfigFromPath(rootPath, configDir);
68 this.standardBaseConfig = standardBaseConfig;
69 this.standardOirginConfigs = standardOirginConfigs;
70
71 this.initBaseTemplate();
72 this.initFilesManager();
73
74 this.originManages = standardOirginConfigs.map(
75 (config) => new OriginManage(config, standardBaseConfig, this.baseTemplate)
76 );
77
78 if (this.originManages.length === 0) {
79 this.log('数据源为空');
80 }
81 }
82
83 /** 切换数据源 */
84 async changeOrigin(name?: string) {

Callers 2

createManagerMethod · 0.95
pinyin.tsFile · 0.80

Calls 4

initBaseTemplateMethod · 0.95
initFilesManagerMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected