MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAwsCommandsSources

Function getAwsCommandsSources

src/components/TrustDialog/utils.ts:174–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 * Returns an array of file paths that have awsAuthRefresh or awsCredentialExport.
173 */
174export function getAwsCommandsSources(): string[] {
175 const sources: string[] = []
176
177 const projectSettings = getSettingsForSource('projectSettings')
178 if (hasAwsCommands(projectSettings)) {
179 sources.push(PROJECT_SETTINGS_DISPLAY_PATH)
180 }
181
182 const localSettings = getSettingsForSource('localSettings')
183 if (hasAwsCommands(localSettings)) {
184 sources.push(LOCAL_SETTINGS_DISPLAY_PATH)
185 }
186
187 return sources
188}
189
190/**
191 * Check if settings have GCP commands configured

Callers 1

TrustDialogFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85
hasAwsCommandsFunction · 0.85

Tested by

no test coverage detected