MCPcopy Create free account
hub / github.com/6174/comflowyspace / constructor

Method constructor

apps/node/src/modules/config-manager.ts:9–15  ·  view source on GitHub ↗
(configName: string)

Source from the content-addressed store, hash-verified

7 private config: Configstore;
8
9 constructor(configName: string) {
10 // 设置配置文件的路径,存储在用户目录的 comflowy 目录下
11 const configDir = getAppDataDir();
12 const configPath = path.join(configDir, `${configName}.json`);
13 // 初始化 Configstore 实例
14 this.config = new Configstore(configName, {}, { configPath });
15 }
16
17 // 获取配置项 p
18 get(key: string): any {

Callers

nothing calls this directly

Calls 1

getAppDataDirFunction · 0.90

Tested by

no test coverage detected