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

Method JSONCompactResult

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

Source from the content-addressed store, hash-verified

114}
115
116func (r *Renderer) JSONCompactResult(data interface{}) {
117 b, err := json.Marshal(data)
118 if err != nil {
119 r.Errorf("couldn't marshal results as JSON: %v", err)
120 return
121 }
122
123 r.Output(ansi.ColorizeJSON(string(b)))
124}
125
126func (r *Renderer) Results(data []View) {
127 if len(data) == 0 {

Callers 6

ResultsMethod · 0.95
ResultMethod · 0.95
ACULConfigListMethod · 0.95
TenantSettingsShowMethod · 0.95
TestTokenMethod · 0.95
subscribeEventStreamCmdFunction · 0.80

Calls 3

ErrorfMethod · 0.95
OutputMethod · 0.95
ColorizeJSONFunction · 0.92

Tested by

no test coverage detected