INNER CODE UNIT · Go

main

buildpacks-community/kpack · cmd/build-waiter/main.go:25

func main() {
	flag.Parse()

	switch *mode {
	case "wait":
		if *errFile != "" {
			ctx, cancel := context.WithCancel(context.Background())
			defer cancel()

			go watchForErrors(ctx, *errFile)
		}

		err := wait(*waitFile, *doneFile, *execute)
		if err != nil {
			exitWithError(err.Error(), *errFile)
		}

	case "copy":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…