mirror of
https://github.com/mudler/luet.git
synced 2025-08-14 21:44:38 +00:00
Enhance cmd output
This commit is contained in:
parent
190d4f0064
commit
71100688f2
12
cmd/query.go
12
cmd/query.go
@ -71,7 +71,7 @@ var queryCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
fmt.Println(">>> World")
|
fmt.Println(">>> World")
|
||||||
for _, packss := range world {
|
for _, packss := range world {
|
||||||
fmt.Println(packss)
|
packss.Explain()
|
||||||
}
|
}
|
||||||
s := solver.NewSolver([]pkg.Package{}, world)
|
s := solver.NewSolver([]pkg.Package{}, world)
|
||||||
solution, err := s.Install([]pkg.Package{pack})
|
solution, err := s.Install([]pkg.Package{pack})
|
||||||
@ -82,15 +82,7 @@ var queryCmd = &cobra.Command{
|
|||||||
fmt.Println(">>> Solution")
|
fmt.Println(">>> Solution")
|
||||||
|
|
||||||
for _, assertion := range solution {
|
for _, assertion := range solution {
|
||||||
fmt.Println(assertion.Package, assertion.Value)
|
assertion.Explain()
|
||||||
|
|
||||||
for _, req := range assertion.Package.GetRequires() {
|
|
||||||
fmt.Println("\t-> ", req)
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, con := range assertion.Package.GetConflicts() {
|
|
||||||
fmt.Println("\t!! ", con)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user