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 --- cmd/root.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cmd/root.go') diff --git a/cmd/root.go b/cmd/root.go index c4239ba..292e96d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,7 +9,8 @@ import ( ) var ( - jsonOutput bool + jsonOutput bool + debugOutput bool ) var rootCmd = &cobra.Command{ @@ -33,8 +34,13 @@ func Execute() { func init() { rootCmd.PersistentFlags().BoolVarP(&jsonOutput, "json", "j", false, "Output raw JSON instead of formatted text") + rootCmd.PersistentFlags().BoolVarP(&debugOutput, "debug", "d", false, "Enable debug output (shows raw API responses)") } func IsJSONOutput() bool { return jsonOutput } + +func IsDebugOutput() bool { + return debugOutput +} -- cgit v1.2.3