From 7d6eb2f1a38e2265751cd61a43769959405866b4 Mon Sep 17 00:00:00 2001 From: s Date: Wed, 26 Nov 2025 09:06:15 -0500 Subject: feat: add debug flag to enable raw api response output --- internal/config/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/config') 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 -- cgit v1.2.3