mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 14:53:52 +00:00
✨ add yes flag to CLIConfigReader
This commit is contained in:
1 parent
75ada96d35
commit
ff1df870aa
4 files changed
+23
-13
No files matched your search
@@ -35,6 +35,7 @@ type RequestConfig struct {
|
||||
Cookies map[string]string
|
||||
Proxies []Proxy
|
||||
Body string
|
||||
Yes bool
|
||||
}
|
||||
|
||||
func (config *RequestConfig) Print() {
|
||||
@@ -152,6 +153,7 @@ func (config *JSONConfig) MergeConfigs(newConfig *JSONConfig) {
|
||||
|
||||
type CLIConfig struct {
|
||||
Config
|
||||
Yes bool `json:"yes" validate:"omitempty"`
|
||||
ConfigFile string `validation_name:"config-file" validate:"omitempty,filepath"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user