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

@ -34,3 +34,12 @@ func (g *GolangManager) InstallPackage(pkg string) error {
cmd := execCommand("go", "install", pkg+"@latest")
return cmd.Run()
}
func (g *GolangManager) RemovePackage(pkg string) error {
cmd := execCommand("go", "uninstall", pkg)
return cmd.Run()
}
func (g *GolangManager) SearchPackage(pkg string) []string {
return []string{}
}