(configName: string)
| 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 { |
nothing calls this directly
no test coverage detected