summaryrefslogtreecommitdiffstats
path: root/cmd/helpers.go
diff options
context:
space:
mode:
authors <[email protected]>2025-11-26 09:06:15 -0500
committers <[email protected]>2025-11-26 09:06:15 -0500
commit7d6eb2f1a38e2265751cd61a43769959405866b4 (patch)
tree99eba2542cd2ba6f30d6e2ad1c3fc53bcb5b5901 /cmd/helpers.go
parentcbc521467a3cca7a17e6f691a9c7fa34f4da3e24 (diff)
downloaddborg-7d6eb2f1a38e2265751cd61a43769959405866b4.tar.gz
dborg-7d6eb2f1a38e2265751cd61a43769959405866b4.zip
feat: add debug flag to enable raw api response output
Diffstat (limited to 'cmd/helpers.go')
-rw-r--r--cmd/helpers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/helpers.go b/cmd/helpers.go
index f53f235..133fb0a 100644
--- a/cmd/helpers.go
+++ b/cmd/helpers.go
@@ -8,11 +8,11 @@ import (
)
func newClient() (*client.Client, error) {
- return client.New(config.New())
+ return client.New(config.New().WithDebug(debugOutput))
}
func newUnauthenticatedClient() (*client.Client, error) {
- return client.NewUnauthenticated(config.New())
+ return client.NewUnauthenticated(config.New().WithDebug(debugOutput))
}
func checkError(errorMsg string) error {