...

Source file src/edge-infra.dev/hack/build/ci/leaf/main.go

Documentation: edge-infra.dev/hack/build/ci/leaf

     1  package main
     2  
     3  import (
     4  	"context"
     5  	"os"
     6  	"os/signal"
     7  
     8  	"edge-infra.dev/hack/build/ci/leaf/cmd"
     9  )
    10  
    11  func main() {
    12  	ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
    13  	defer cancel()
    14  	if err := cmd.Run(ctx); err != nil {
    15  		cancel()
    16  		os.Exit(1)
    17  	}
    18  }
    19  

View as plain text