Skip to content

Commit

Permalink
feat: add Template support to config
Browse files Browse the repository at this point in the history
  • Loading branch information
vmfunc committed Jul 10, 2024
1 parent 41210d1 commit d2281c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Settings struct {
URLs goflags.StringSlice
File string
ApiMode bool
Template string
}

const (
Expand Down Expand Up @@ -69,6 +70,7 @@ func Parse() *Settings {
flagSet.DurationVarP(&settings.Timeout, "timeout", "t", 10*time.Second, "HTTP request timeout"),
flagSet.StringVarP(&settings.LogDir, "log", "l", "", "Directory to store logs in"),
flagSet.IntVar(&settings.Threads, "threads", 10, "Number of threads to run scans on"),
flagSet.StringVar(&settings.Template, "template", "", "Sif runtime template to use"),
)

flagSet.CreateGroup("api", "API",
Expand Down

0 comments on commit d2281c3

Please sign in to comment.