-
Notifications
You must be signed in to change notification settings - Fork 4
Add configure connection delete command #9
Copy link
Copy link
Closed
Description
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
deletesubcommand underconfigure connection - Interactive: list connections, prompt select, confirm
- Flag-based:
--plugin+--idrequired - Call
DELETE /plugins/{plugin}/connections/{id} - Remove from state file after successful deletion
- Add
DeleteConnectionmethod todevlake.Client
Acceptance Criteria
- Interactive mode lists connections and prompts for confirmation
- Flag mode works with
--plugin+--id - State file updated after deletion
- Confirmation prompt warns about scope deletion
- Graceful error if connection ID doesn't exist
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request