Files
rvbox/test/harness/main.go
T

19 lines
310 B
Go

package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()
if err := runCLI(ctx, os.Args[1:]); err != nil {
fmt.Fprintln(os.Stderr, "test harness:", err)
os.Exit(1)
}
}