nf/nft/nfctl/main.go

17 lines
293 B
Go
Raw Normal View History

2024-07-09 18:08:49 +08:00
package main
import (
"context"
"os/signal"
"syscall"
2024-12-16 22:50:51 +08:00
"github.com/loveuer/nf/nft/nfctl/cmd"
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
_ = cmd.Root.ExecuteContext(ctx)
2024-07-09 18:08:49 +08:00
}