feat(cli): cleanup install command and add remove and search command

This commit is contained in:
Patryk Hegenberg 2025-01-17 18:00:20 +01:00
parent c0be9a6b43
commit 4006852790
7 changed files with 81 additions and 65 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"fmt"
"log"
"github.com/spf13/cobra"
@ -37,6 +38,7 @@ var installCmd = &cobra.Command{
case "flatpak":
manager = &FlatpakManager{}
default:
fmt.Println("No PackageManager found")
}
if err := manager.InstallPackage(packageName); err != nil {
log.Printf("error: %v\n", err)