Show mount accessors in normal secrets/auth list commands (#4676)
This makes them significantly easier to find/consume
This commit is contained in:
parent
6eb183dee0
commit
21a9b06983
|
@ -116,10 +116,10 @@ func (c *AuthListCommand) simpleMounts(auths map[string]*api.AuthMount) []string
|
|||
}
|
||||
sort.Strings(paths)
|
||||
|
||||
out := []string{"Path | Type | Description"}
|
||||
out := []string{"Path | Type | Accessor | Description"}
|
||||
for _, path := range paths {
|
||||
mount := auths[path]
|
||||
out = append(out, fmt.Sprintf("%s | %s | %s", path, mount.Type, mount.Description))
|
||||
out = append(out, fmt.Sprintf("%s | %s | %s | %s", path, mount.Type, mount.Accessor, mount.Description))
|
||||
}
|
||||
|
||||
return out
|
||||
|
|
|
@ -116,10 +116,10 @@ func (c *SecretsListCommand) simpleMounts(mounts map[string]*api.MountOutput) []
|
|||
}
|
||||
sort.Strings(paths)
|
||||
|
||||
out := []string{"Path | Type | Description"}
|
||||
out := []string{"Path | Type | Accessor | Description"}
|
||||
for _, path := range paths {
|
||||
mount := mounts[path]
|
||||
out = append(out, fmt.Sprintf("%s | %s | %s", path, mount.Type, mount.Description))
|
||||
out = append(out, fmt.Sprintf("%s | %s | %s | %s", path, mount.Type, mount.Accessor, mount.Description))
|
||||
}
|
||||
|
||||
return out
|
||||
|
|
Loading…
Reference in New Issue