diff options
| author | s <[email protected]> | 2025-11-26 09:06:15 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-26 09:06:15 -0500 |
| commit | 7d6eb2f1a38e2265751cd61a43769959405866b4 (patch) | |
| tree | 99eba2542cd2ba6f30d6e2ad1c3fc53bcb5b5901 /internal/config/config.go | |
| parent | cbc521467a3cca7a17e6f691a9c7fa34f4da3e24 (diff) | |
| download | dborg-7d6eb2f1a38e2265751cd61a43769959405866b4.tar.gz dborg-7d6eb2f1a38e2265751cd61a43769959405866b4.zip | |
feat: add debug flag to enable raw api response output
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index b8538be..9df03bf 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -14,6 +14,7 @@ type Config struct { Timeout time.Duration MaxRetries int UserAgent string + Debug bool } type FileConfig struct { @@ -45,6 +46,11 @@ func (c *Config) WithAPIKey(key string) *Config { return c } +func (c *Config) WithDebug(debug bool) *Config { + c.Debug = debug + return c +} + func (c *Config) Validate() error { if c.APIKey == "" { return ErrMissingAPIKey |
