Files
wehub-resource-sync 48b3ccf279
Test / test (windows-latest) (push) Waiting to run
gitleaks / gitleaks (push) Has been skipped
Test / test (ubuntu-latest) (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:12:29 +08:00

25 lines
514 B
Go

package main
import (
"os"
"os/signal"
"github.com/zricethezav/gitleaks/v8/cmd"
"github.com/zricethezav/gitleaks/v8/logging"
)
func main() {
// this block sets up a go routine to listen for an interrupt signal
// which will immediately exit gitleaks
stopChan := make(chan os.Signal, 1)
signal.Notify(stopChan, os.Interrupt)
go listenForInterrupt(stopChan)
cmd.Execute()
}
func listenForInterrupt(stopScan chan os.Signal) {
<-stopScan
logging.Fatal().Msg("Interrupt signal received. Exiting...")
}