Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Loading