MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / set

Method set

ssh/ssh.ts:197–208  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

195 this.configPath = path.join(
196 createDirectoryInAssets("sshkey"),
197 "sshkey_config.json"
198 );
199 this.db = await JSONFilePreset<Record<string, any>>(
200 this.configPath,
201 { ...DEFAULT_CONFIG }
202 );
203 this.initialized = true;
204 } catch (error) {
205 console.error("[ssh] 初始化配置失败:", error);
206 } finally {
207 this.initLock = false;
208 }
209 }
210
211 static async get(key: string, defaultValue?: string): Promise<string> {

Callers 15

fetchFromWallhavenFunction · 0.45
fetchServiceMonitorFunction · 0.45
nezhaFunction · 0.45
extractDNSDataFunction · 0.45
scheduleRetryMethod · 0.45
scheduleExpiryMethod · 0.45
scheduleTaskFunction · 0.45
registerTaskMethod · 0.45
changeSSHPortMethod · 0.45
togglePasswordAuthMethod · 0.45
toggleKeyAuthMethod · 0.45
setTargetMethod · 0.45

Calls 3

initMethod · 0.95
writeMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected