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
3 changes: 3 additions & 0 deletions cmd/importDir.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ func NewImportDirCommand(globalClientOpts *connectors.ClientOptions) *cobra.Comm
}

fmt.Printf("\nImport completed: %d/%d files imported successfully\n", result.SuccessCount, result.TotalFiles)
if result.FailedCount > 0 {
os.Exit(1)
}
Comment on lines 199 to +202

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right behavior change for CI/CD, but please add a test that covers the partial-failure path and verifies we return a non-zero exit when FailedCount > 0.

},
}

Expand Down
Loading