package git import ( "fmt" "os/exec" ) func Run(args []string) (string, error) { out, err := exec.Command("git", args...).Output() if err != nil { return "", fmt.Errorf("git command failed: %w", err) } return string(out), nil } func IsRepo() bool { _, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output() return err == nil }