-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Feature Summary
Add a teardown hook that runs when a task is deleted (or archived via soft-delete).
Config
// .emdash.json
{
"scripts": {
"setup": "npm install",
"teardown": "echo 'Task done'"
}
}Environment Variables
The script would receive:
EMDASH_TASK_NAMEEMDASH_TASK_IDEMDASH_WORKTREE_PATHEMDASH_PROJECT_PATHEMDASH_BRANCH
Execution
- Fire and forget (non-blocking)
- Runs from project root (not worktree, since it's being deleted)
- Failure doesn't block deletion
Use Cases
- Back up uncommitted work
- Log completed tasks
- Stop related processes (docker, dev servers)
- Send notifications
Metadata
Metadata
Assignees
Labels
No labels