summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/main.go b/main.go
index ca60c40..95c90b5 100644
--- a/main.go
+++ b/main.go
@@ -3,7 +3,6 @@ package main
import (
"fmt"
"os"
- "os/exec"
"context"
"log"
"github.com/fatih/color"
@@ -11,14 +10,7 @@ import (
)
func main() {
- // Check if Homebrew is installed
- _, brewInstallationErr := exec.LookPath("brew")
- if brewInstallationErr != nil {
- color.Red("🍺 Homebrew not installed.")
- fmt.Println("This tool is for looking up formulae/cask information about packages installed with Homebrew.")
- fmt.Println("If you don't have Homebrew, it's no use.")
- os.Exit(0)
- }
+ EnsureBrewAvailable()
// declare CLI app
cmd := &cli.Command{