-
Notifications
You must be signed in to change notification settings - Fork 4
Add --force flag to connection delete and scope delete #98
Copy link
Copy link
Closed
Description
Problem
connection delete and scope delete always call prompt.Confirm() for confirmation, with no way to skip it. This makes both commands unusable in CI/CD pipelines or automation scripts — they hang waiting for stdin input that never arrives.
The cleanup command already supports a --force flag (cleanupForce in cleanup.go:16) that skips confirmation. These two commands should have parity.
Scope of Changes
configure_connection_delete.go
- Add
connDeleteForce boolflag:--force - Skip
prompt.ConfirmwhenconnDeleteForceis true
configure_scope_delete.go
- Add
scopeDeleteForce boolflag:--force - Skip
prompt.ConfirmwhenscopeDeleteForceis true
Acceptance Criteria
-
gh devlake configure connection delete --plugin github --id 1 --forcedeletes without prompting -
gh devlake configure scope delete --plugin github --connection-id 1 --scope-id 123 --forcedeletes without prompting - Without
--force, both commands still prompt for confirmation (no behavior change) -
go build ./...andgo test ./...pass
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request