cmd-zet/internal/lib/git.go
Oliver Davies 9019f4579d Add titles command to show all IDs and titles
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-24 01:35:17 +01:00

12 lines
259 B
Go

package lib
import "os/exec"
func execGitCommand(dir string, parts ...string) (string, error) {
args := append([]string{"-C", dir}, parts...)
command := exec.Command("git", args...)
output, err := command.CombinedOutput()
return string(output), err
}