()
| 172 | * Returns an array of file paths that have awsAuthRefresh or awsCredentialExport. |
| 173 | */ |
| 174 | export 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 |
no test coverage detected