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

Method QuickstartList

internal/display/quickstarts.go:31–49  ·  view source on GitHub ↗
(quickstarts []auth0.Quickstart)

Source from the content-addressed store, hash-verified

29}
30
31func (r *Renderer) QuickstartList(quickstarts []auth0.Quickstart) {
32 r.Heading()
33
34 sort.SliceStable(quickstarts, func(i, j int) bool {
35 return quickstarts[i].AppType < quickstarts[j].AppType
36 })
37
38 var results []View
39 for _, qs := range quickstarts {
40 results = append(results, &quickstartView{
41 Stack: qs.Name,
42 AppType: ApplyColorToFriendlyAppType(qsAppTypeFor(qs.AppType)),
43 URL: fmt.Sprintf("%s%s", qsBaseURL, qs.URL),
44 raw: qs,
45 })
46 }
47
48 r.Results(results)
49}
50
51func qsAppTypeFor(s string) string {
52 switch s {

Callers 1

listQuickstartsFunction · 0.80

Calls 4

HeadingMethod · 0.95
ResultsMethod · 0.95
qsAppTypeForFunction · 0.85

Tested by

no test coverage detected