chore: initial commit

This commit is contained in:
2022-02-26 14:08:44 +00:00
commit b67da4accb
12 changed files with 1616 additions and 0 deletions

28
main.go Normal file
View File

@@ -0,0 +1,28 @@
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {
cmd, err := rootCommand()
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
os.Exit(1)
}
ctx, cancel := signal.NotifyContext(
context.Background(),
syscall.SIGINT, syscall.SIGTERM,
)
defer cancel()
err = cmd.ExecuteContext(ctx)
if err != nil {
os.Exit(1)
}
}