@@ -10,7 +10,6 @@ import (
1010)
1111
1212var (
13- // cfgFile string
1413 inputFile string
1514 outputFile string
1615 verbose bool
2019 rateLimit int
2120 regexFile string
2221 customHeader []string
22+ insecureSkipVerify bool
2323)
2424
2525// rootCmd represents the base command when called without any subcommands
@@ -42,19 +42,15 @@ rate limiting and WAF blocks for remote resources.`,
4242
4343// beforeCommand executes before any command runs
4444func beforeCommand (cmd * cobra.Command , args []string ) {
45- // Desabilite a limpeza completa de estado para diagnóstico
4645 fmt .Println ("DEBUG: beforeCommand chamado, limpeza de estado global desativada para diagnóstico" )
4746
48- // Apenas force GC para garantir memória suficiente
4947 runtime .GC ()
5048
51- // Small delay to ensure system is stabilized
5249 time .Sleep (100 * time .Millisecond )
5350}
5451
5552// Execute adds all child commands to the root command
5653func Execute () {
57- // Add pre-run hook to all commands
5854 for _ , cmd := range rootCmd .Commands () {
5955 originalPreRun := cmd .PreRun
6056 cmd .PreRun = func (cmd * cobra.Command , args []string ) {
@@ -83,8 +79,11 @@ func init() {
8379 rootCmd .Flags ().IntVarP (& maxRetries , "retries" , "r" , 3 , "maximum number of retries for HTTP requests" )
8480 rootCmd .Flags ().IntVarP (& concurrency , "concurrency" , "n" , 10 , "number of concurrent workers" )
8581 rootCmd .Flags ().IntVarP (& rateLimit , "rate-limit" , "l" , 0 , "requests per second per domain (0 = auto)" )
86- rootCmd .Flags ().StringVar (& regexFile , "regex-file" , "" , "file containing regex patterns (optional)" )
82+ // Temporarily disable regex file support
83+ // rootCmd.Flags().StringVar(®exFile, "regex-file", "", "file containing regex patterns (optional)")
8784 rootCmd .Flags ().StringArrayVarP (& customHeader , "header" , "H" , []string {}, "custom HTTP header (format: 'Name: Value') - can be used multiple times" )
8885
86+ rootCmd .PersistentFlags ().BoolVar (& insecureSkipVerify , "insecure" , false , "Disable SSL/TLS certificate verification" )
87+
8988 rootCmd .Flags ().SetInterspersed (true )
9089}
0 commit comments