Summary
Add a configure connection delete subcommand to remove connections that are broken, test connections, or no longer needed.
Design (Option A: under configure connection)
gh devlake configure connection delete # interactive gh devlake configure connection delete --plugin gh-copilot --id 3 # flag-based
Interactive flow:
- List all connections across plugins
- User selects one to delete
- Confirmation prompt with warning about losing scopes
- DELETE /plugins/{plugin}/connections/{id}
- Update state file
Changes
- Add
delete subcommand under configure connection
- Interactive: list connections, prompt select, confirm
- Flag-based:
--plugin + --id required
- Call
DELETE /plugins/{plugin}/connections/{id}
- Remove from state file after successful deletion
- Add
DeleteConnection method to devlake.Client
Acceptance Criteria
Summary
Add a
configure connection deletesubcommand to remove connections that are broken, test connections, or no longer needed.Design (Option A: under configure connection)
gh devlake configure connection delete # interactive gh devlake configure connection delete --plugin gh-copilot --id 3 # flag-basedInteractive flow:
Changes
deletesubcommand underconfigure connection--plugin+--idrequiredDELETE /plugins/{plugin}/connections/{id}DeleteConnectionmethod todevlake.ClientAcceptance Criteria
--plugin+--id