Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gosurp", Short: "gosurp is an usurpation tool, supporting SMTP and DNS protocols for now.", PersistentPreRun: func(cmd *cobra.Command, args []string) { cliFlag, _ := cmd.Flags().GetCount("verbose") switch cliFlag { case 1: log.SetLevel(log.InfoLevel) log.Info("Log level set to INFO") case 2: log.SetLevel(log.DebugLevel) log.Info("Log level set to DEBUG") case 3: log.SetLevel(log.TraceLevel) log.Info("Log level set to TRACE") default: log.SetLevel(log.InfoLevel) log.Info("Default log level set to INFO") } }, }
rootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.