package mainimport ( "fmt" "os" "os/signal" "syscall")func main() { signalChan := make(chan os.Signal, 1) signal.Notify( signalChan, os.Interrupt, os.Kill, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL, syscall.SIGTERM, ) <-signalChan fmt.Println("shutting down...")}
build:test: sources: - '**/*.go' - 'go.sum' - 'go.mod' generates: - tmp/a.exe cmd: go build -o tmp/a.exe test: deps: [ build:test ] cmds: - cp tmp/a.exe tmp/test.exe - tmp/test.exe
*.{so,pyd}
generates: - ./src/**/*.so # - ./src/**/*.pyd # windows
generated
bump: cmds: - poetry version {{.CLI_ARGS}} - git add pyproject.toml - task: bump-commit bump-commit: internal: true vars: VERSION: sh: poetry version -s cmds: - 'git commit -m "bump: {{.VERSION}}"' - 'git tag "v{{.VERSION}}" -m "v{{.VERSION}}"'
.venv