Print the dependency key and value during describe
This commit is contained in:
parent
dcb6c958b3
commit
85ba692832
|
@ -144,8 +144,8 @@ func printPackage(pkg *pack.Package, printSymbols bool, printExports bool, print
|
||||||
fmt.Printf("%vdependencies [", tab)
|
fmt.Printf("%vdependencies [", tab)
|
||||||
if pkg.Dependencies != nil && len(*pkg.Dependencies) > 0 {
|
if pkg.Dependencies != nil && len(*pkg.Dependencies) > 0 {
|
||||||
fmt.Printf("\n")
|
fmt.Printf("\n")
|
||||||
for _, dep := range *pkg.Dependencies {
|
for _, dep := range pack.StableDependencies(*pkg.Dependencies) {
|
||||||
fmt.Printf("%v\"%v\"\n", tab+tab, dep)
|
fmt.Printf("%v%v: \"%v\"\n", tab+tab, dep, (*pkg.Dependencies)[dep])
|
||||||
}
|
}
|
||||||
fmt.Printf("%v", tab)
|
fmt.Printf("%v", tab)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue