MCPcopy Create free account
hub / github.com/hashicorp/vault / OutputList

Function OutputList

command/format.go:36–44  ·  view source on GitHub ↗
(ui cli.Ui, data interface{})

Source from the content-addressed store, hash-verified

34}
35
36func OutputList(ui cli.Ui, data interface{}) int {
37 switch data := data.(type) {
38 case *api.Secret:
39 secret := data
40 return outputWithFormat(ui, secret, secret.Data["keys"])
41 default:
42 return outputWithFormat(ui, nil, data)
43 }
44}
45
46func OutputData(ui cli.Ui, data interface{}) int {
47 return outputWithFormat(ui, nil, data)

Callers 4

RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 1

outputWithFormatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…