Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alwqx committed Oct 11, 2024
1 parent 1dedd11 commit 2048e8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2048e8a

Please sign in to comment.