From 2048e8a365b3f614bd542bc1318a95fb9c6311ab Mon Sep 17 00:00:00 2001 From: alwqx Date: Fri, 11 Oct 2024 21:43:33 +0800 Subject: [PATCH] add comment --- cmd/cmd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/cmd.go b/cmd/cmd.go index 0e836a4..b267e37 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -61,10 +61,12 @@ func NewCLI() *cobra.Command { return rootCmd } +// versionHandler print version func versionHandler(cmd *cobra.Command, _ []string) { fmt.Printf("sec version is %s\n", version.Version) } +// debugHandler set debug mode func debugHandler(cmd *cobra.Command, args []string) { if debug, _ := cmd.Flags().GetBool("debug"); debug { slog.SetLogLoggerLevel(slog.LevelDebug)