feat(cli): add first implementation for install command
This commit is contained in:
parent
c1e913641e
commit
c0be9a6b43
11 changed files with 257 additions and 77 deletions
|
|
@ -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{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue