Show mount accessors in normal secrets/auth list commands (#4676)

This makes them significantly easier to find/consume
This commit is contained in:
Jeff Mitchell 2018-06-01 10:20:09 -04:00 committed by GitHub
parent 6eb183dee0
commit 21a9b06983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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