(location: SettingSource)
| 77 | } |
| 78 | |
| 79 | function getRelativeAgentDirectoryPath(location: SettingSource): string { |
| 80 | switch (location) { |
| 81 | case 'projectSettings': |
| 82 | return join('.', AGENT_PATHS.FOLDER_NAME, AGENT_PATHS.AGENTS_DIR) |
| 83 | default: |
| 84 | return getAgentDirectoryPath(location) |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Gets the file path for a new agent based on its name |
no test coverage detected