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

Method Extras

internal/display/logs.go:118–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func (v *LogView) Extras() []string {
119 if v.silent {
120 return nil
121 }
122
123 // NOTE(cyx): For now we only want to return full log information when
124 // it's an error.
125 if v.category() != logCategoryFailure {
126 return nil
127 }
128
129 raw, _ := yaml.Marshal(v.Log)
130 return []string{ansi.Faint(indent(string(raw), "\t"))}
131}
132
133func (v *LogView) category() logCategory {
134 switch logType := v.GetType(); {

Callers 1

extractExtrasFunction · 0.80

Calls 3

categoryMethod · 0.95
FaintFunction · 0.92
indentFunction · 0.85

Tested by

no test coverage detected