( app: App | undefined, commands: unknown, )
| 847 | } |
| 848 | |
| 849 | export 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 | |
| 864 | function getSecretOptionNamesForCommand( |
| 865 | command: Record<string, unknown>, |
no test coverage detected