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

Method JSONResult

internal/display/display.go:107–114  ·  view source on GitHub ↗
(data interface{})

Source from the content-addressed store, hash-verified

105}
106
107func (r *Renderer) JSONResult(data interface{}) {
108 b, err := json.MarshalIndent(data, "", " ")
109 if err != nil {
110 r.Errorf("couldn't marshal results as JSON: %v", err)
111 return
112 }
113 r.Output(ansi.ColorizeJSON(string(b)))
114}
115
116func (r *Renderer) JSONCompactResult(data interface{}) {
117 b, err := json.Marshal(data)

Callers 14

LogListMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
ResultMethod · 0.95
ACULConfigListMethod · 0.95
TenantSettingsShowMethod · 0.95
TestLoginMethod · 0.95
TestTokenMethod · 0.95
ShowDeliveryMethod · 0.95
listLogsCmdFunction · 0.80
searchUsersCmdFunction · 0.80

Calls 3

ErrorfMethod · 0.95
OutputMethod · 0.95
ColorizeJSONFunction · 0.92

Tested by

no test coverage detected