feat(cli): add update and update-all command

This commit is contained in:
Patryk Hegenberg 2025-01-19 22:21:28 +01:00
parent 3b1799397e
commit f39051f93d
12 changed files with 192 additions and 8 deletions

View file

@ -1,6 +1,9 @@
package packagemanager
import "system_setup_tool/internal/shell"
import (
"fmt"
"system_setup_tool/internal/shell"
)
type CargoManager struct{}
@ -45,3 +48,11 @@ func (c *CargoManager) RemovePackage(pkg string) error {
func (c *CargoManager) SearchPackage(pkg string) []string {
return []string{}
}
func (c *CargoManager) UpdatePackage(pkg string) error {
return fmt.Errorf("update not supported")
}
func (c *CargoManager) UpdateAllPackages() error {
return fmt.Errorf("update not supported")
}