feat: refactor requirements.go

This commit is contained in:
Simon Cornet 2025-07-08 13:11:30 +02:00
commit 54f0049c06
2 changed files with 3 additions and 38 deletions

View file

@ -0,0 +1,15 @@
package main
import (
"fmt"
"os/exec"
)
// verify if git is available
func verifyGitAvailable() error {
_, err := exec.LookPath("git")
if err != nil {
return fmt.Errorf("git is not installed or not in PATH: %w", err)
}
return nil
}