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 bool flag: --force
- Skip
prompt.Confirm when connDeleteForce is true
configure_scope_delete.go
- Add
scopeDeleteForce bool flag: --force
- Skip
prompt.Confirm when scopeDeleteForce is true
Acceptance Criteria
Problem
connection deleteandscope deletealways callprompt.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
cleanupcommand already supports a--forceflag (cleanupForceincleanup.go:16) that skips confirmation. These two commands should have parity.Scope of Changes
configure_connection_delete.goconnDeleteForce boolflag:--forceprompt.ConfirmwhenconnDeleteForceis trueconfigure_scope_delete.goscopeDeleteForce boolflag:--forceprompt.ConfirmwhenscopeDeleteForceis trueAcceptance Criteria
gh devlake configure connection delete --plugin github --id 1 --forcedeletes without promptinggh devlake configure scope delete --plugin github --connection-id 1 --scope-id 123 --forcedeletes without prompting--force, both commands still prompt for confirmation (no behavior change)go build ./...andgo test ./...pass