mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-07-06 20:06:34 +05:30
feat: add zerolog logger
This commit is contained in:
@ -6,6 +6,7 @@ package cmd
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/0xtux/trok/internal/config"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -15,6 +16,10 @@ var rootCmd = &cobra.Command{
|
||||
Long: "Simple TCP tunnel in Go that exposes local ports to internet, bypassing NAT firewalls.",
|
||||
}
|
||||
|
||||
func init() {
|
||||
config.InitLogger()
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
||||
err := rootCmd.Execute()
|
||||
|
Reference in New Issue
Block a user