mirror of
https://github.com/mudler/luet.git
synced 2025-08-02 07:59:22 +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")
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user