INNER CODE UNIT · Go
main
runmedev/runme · tools/release-notes/main.go:97
func main() {
flag.Parse()
if flagsConfig.Version == "" {
log.Fatalf("-version cannot be empty")
}
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
ctx, cancel := context.WithCancel(context.Background())
go func() {
<-sigs
cancel()
}()
client := ghClient(ctx)