From a64662d358b30269f60945548d838da6b924c378 Mon Sep 17 00:00:00 2001 From: Miguel Prieto Date: Tue, 16 Dec 2025 11:53:39 -0300 Subject: [PATCH] Skip API client setup for orkes update and orkes code --- cmd/root.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 7ef4dfd..501f677 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -86,8 +86,11 @@ var rootCmd = &cobra.Command{ } } - // Check if parent is config command, which is local only. Skip api client setup - if cmd.Parent() != nil && cmd.Parent().Name() == "config" { + // Skip API client setup for local-only commands + if cmd.Parent() != nil && (cmd.Parent().Name() == "config" || cmd.Parent().Name() == "code") { + return nil + } + if cmd.Name() == "update" || cmd.Name() == "code" { return nil }