(samplePath string)
| 252 | } |
| 253 | |
| 254 | func relativeQuickstartSamplePath(samplePath string) (string, error) { |
| 255 | dir, err := os.Getwd() |
| 256 | if err != nil { |
| 257 | return "", unexpectedError(err) |
| 258 | } |
| 259 | |
| 260 | relativePath, err := filepath.Rel(dir, samplePath) |
| 261 | if err != nil { |
| 262 | return "", unexpectedError(err) |
| 263 | } |
| 264 | |
| 265 | return relativePath, nil |
| 266 | } |
| 267 | |
| 268 | // promptDefaultURLs checks whether the application is SPA or WebApp and |
| 269 | // whether the app has already added the default quickstart url to allowed url lists. |
no test coverage detected