nf/nft/nfctl/main.go

20 lines
375 B
Go
Raw Permalink Normal View History

2024-07-09 18:08:49 +08:00
package main
import (
"context"
"github.com/loveuer/nf/nft/nfctl/cmd"
"os/signal"
"syscall"
2024-07-09 18:08:49 +08:00
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
defer cancel()
2024-07-09 18:08:49 +08:00
2024-07-14 17:26:48 +08:00
//if !(len(os.Args) >= 2 && os.Args[1] == "version") {
// version.Check(5)
//}
2024-07-09 18:08:49 +08:00
_ = cmd.Root.ExecuteContext(ctx)
2024-07-09 18:08:49 +08:00
}