MCPcopy Create free account
hub / github.com/chhoumann/quickadd / clearUserScriptSecretsFromCommands

Function clearUserScriptSecretsFromCommands

src/utils/userScriptSecrets.ts:849–862  ·  view source on GitHub ↗
(
	app: App | undefined,
	commands: unknown,
)

Source from the content-addressed store, hash-verified

847}
848
849export async function clearUserScriptSecretsFromCommands(
850 app: App | undefined,
851 commands: unknown,
852): Promise<boolean> {
853 if (!Array.isArray(commands)) return true;
854
855 let cleared = true;
856
857 for (const command of commands) {
858 cleared = (await clearUserScriptSecretsFromCommand(app, command)) && cleared;
859 }
860
861 return cleared;
862}
863
864function getSecretOptionNamesForCommand(
865 command: Record<string, unknown>,

Callers 2

clearSecretsFromChoiceFunction · 0.85

Calls 1

Tested by

no test coverage detected