MCPcopy Create free account
hub / github.com/auth0/auth0-cli / relativeQuickstartSamplePath

Function relativeQuickstartSamplePath

internal/cli/quickstarts.go:254–266  ·  view source on GitHub ↗
(samplePath string)

Source from the content-addressed store, hash-verified

252}
253
254func 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.

Callers 1

downloadQuickstartFunction · 0.85

Calls 1

unexpectedErrorFunction · 0.85

Tested by

no test coverage detected