feat: add on_create, on_delete, and on_switch lifecycle hooks#7
feat: add on_create, on_delete, and on_switch lifecycle hooks#7Stan15 wants to merge 4 commits intoafonsofrancof:mainfrom
Conversation
|
Hi! |
|
Thanks for the feedback, @afonsofrancof! I can make that change and push out an update in a sec 👍 |
|
@Stan15 any updates? Really looking forward to this, would integrate very nicely with |
…rrent worktree path could not be found
|
Sorry guys, life just got busy and I completely forgot about this. i've made that change now. Please do test it out yourselves and let me know if there's anything to be adjusted/changed, and i'll try not to take a whole month to make the minor change lol (just joking - i'll be on it quick) |
Summary
Add lifecycle hooks:
on_create,on_delete,on_switchAdds optional callback hooks to the setup config that fire after worktree lifecycle events. This is very for automating environment setup that can't be shared across worktrees - e.g. symlinking .env files, running build scripts, e.t.c.
Usage:
Details: