feat(cli): add first implementation for install command

This commit is contained in:
Patryk Hegenberg 2025-01-17 16:18:03 +01:00
parent c1e913641e
commit c0be9a6b43
11 changed files with 257 additions and 77 deletions

View file

@ -41,3 +41,12 @@ func (h *HomebrewManager) InstallPackage(pkg string) error {
cmd := execCommand("brew", "install", pkg)
return cmd.Run()
}
func (h *HomebrewManager) RemovePackage(pkg string) error {
cmd := execCommand("brew", "uninstall", pkg)
return cmd.Run()
}
func (h *HomebrewManager) SearchPackage(pkg string) []string {
return []string{}
}