refactor: implement a simple progressbar instead of bubbletea
This commit is contained in:
parent
0504d88775
commit
339dba4e13
11 changed files with 104 additions and 116 deletions
14
cargo.go
14
cargo.go
|
|
@ -1,8 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
// "fmt"
|
||||
// "log"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
|
|
@ -12,22 +10,10 @@ func (c *CargoManager) Install(packages []string) error {
|
|||
if len(packages) == 0 {
|
||||
return nil
|
||||
}
|
||||
// fmt.Printf("\nInstalliere %s-Pakete...\n", c.Name())
|
||||
err := installWithProgress(c, packages)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// for _, pkg := range packages {
|
||||
// err := installPackageWithProgress(pkg, func() error {
|
||||
// cmd := exec.Command("cargo", "install", pkg)
|
||||
// return cmd.Run()
|
||||
// })
|
||||
// if err != nil {
|
||||
// log.Printf("Fehler bei der Installation von %s: %v", pkg, err)
|
||||
// }
|
||||
// }
|
||||
|
||||
// fmt.Println("Installation abgeschlossen")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue