Enhance cmd output

This commit is contained in:
Ettore Di Giacinto 2019-10-31 12:41:12 +01:00
parent 190d4f0064
commit 71100688f2
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -71,7 +71,7 @@ var queryCmd = &cobra.Command{
}
fmt.Println(">>> World")
for _, packss := range world {
fmt.Println(packss)
packss.Explain()
}
s := solver.NewSolver([]pkg.Package{}, world)
solution, err := s.Install([]pkg.Package{pack})
@ -82,15 +82,7 @@ var queryCmd = &cobra.Command{
fmt.Println(">>> Solution")
for _, assertion := range solution {
fmt.Println(assertion.Package, assertion.Value)
for _, req := range assertion.Package.GetRequires() {
fmt.Println("\t-> ", req)
}
for _, con := range assertion.Package.GetConflicts() {
fmt.Println("\t!! ", con)
}
assertion.Explain()
}
}