Add Zygostates hardware qualification runner
This commit is contained in:
commit
65541dc8eb
1 changed files with 2889 additions and 0 deletions
23
cmd/zygostates/main.go
Normal file
23
cmd/zygostates/main.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"zygostates/internal/zygostates"
|
||||
)
|
||||
|
||||
func main() {
|
||||
configPath := flag.String("config", "zygostates.yaml", "configuration file")
|
||||
flag.Parse()
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
if err := zygostates.Run(ctx, *configPath); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue