✨ add yes flag to CLIConfigReader

This commit is contained in:
aykhans committed 2024-09-03 02:26:32 +04:00
1 parent 75ada96d35
commit ff1df870aa
4 files changed
+23 -13

No files matched your search

+2
View File
@@ -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"`
}