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

Method getConnection

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

Source from the content-addressed store, hash-verified

44}
45
46func (v *LogView) getConnection() string {
47 if v.Details["prompts"] == nil {
48 return notApplicable
49 }
50
51 prompt, ok := v.Details["prompts"].([]interface{})
52 if ok && len(prompt) > 0 {
53 dict, ok := prompt[0].(map[string]interface{})
54 if ok {
55 v, ok := dict["connection"].(string)
56 if ok {
57 return v
58 }
59 return notApplicable
60 }
61 return notApplicable
62 }
63 return notApplicable
64}
65
66func (v *LogView) AsTableRowString() string {
67 row := v.AsTableRow()

Callers 1

AsTableRowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected