()
| 24 | ) |
| 25 | |
| 26 | func main() { |
| 27 | ctx, cancel := oshelper.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT) |
| 28 | defer cancel() |
| 29 | |
| 30 | cmd, err := ReleaseCommand(Config{EnableModulesWithPreReleaseVersion: []string{"x"}, BeforeCommitHook: makeMod}) |
| 31 | if err != nil { |
| 32 | panic(err) |
| 33 | } |
| 34 | cmd.SetContext(ctx) |
| 35 | if err := cmd.Execute(); err != nil { |
| 36 | panic(err) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func makeMod() error { |
| 41 | cmd := exec.Command("make", "mod") |
nothing calls this directly
no test coverage detected