s3-tests-parser/cmd/parser/main.go
Denis Kirillov 8ae5fa912b Add basic parser
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2023-08-31 11:35:53 +03:00

20 lines
430 B
Go

package main
import (
"context"
"os"
"os/signal"
"syscall"
"git.frostfs.info/TrueCloudLab/s3-tests-parser/cmd/parser/modules"
)
func main() {
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
if cmd, err := modules.Execute(ctx); err != nil {
cmd.PrintErrln("Error:", err.Error())
cmd.PrintErrf("Run '%v --help' for usage.\n", cmd.CommandPath())
os.Exit(1)
}
}