MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / get

Method get

ssh/ssh.ts:190–195  ·  view source on GitHub ↗
(key: string, defaultValue?: string)

Source from the content-addressed store, hash-verified

188 }
189
190 static async get(key: string, defaultValue?: string): Promise<string> {
191 await this.init();
192 if (!this.db) return defaultValue || DEFAULT_CONFIG[key] || "";
193 const value = this.db.data[key];
194 return value ?? defaultValue ?? DEFAULT_CONFIG[key] ?? "";
195 }
196
197 static async set(key: string, value: string): Promise<boolean> {
198 await this.init();

Callers 15

fetchDetailFunction · 0.45
downloadCliFunction · 0.45
getIpApiFunction · 0.45
checkNetworkConnectivityFunction · 0.45
saveSpeedtestImageFunction · 0.45
EpicPluginClass · 0.45
fetchFromWallhavenFunction · 0.45
fetchFromFallbackFunction · 0.45
getWallpaperFunction · 0.45
getNodeInfoFunction · 0.45
getWebsiteInfoFunction · 0.45
loadRemoteMappingsMethod · 0.45

Calls 1

initMethod · 0.95

Tested by

no test coverage detected