I wanted something like:
[[pre-start]]
trust = "gum confirm 'trust this worktree?' && mise trust || echo 'worktree not trusted'"
(which doesn't work, because hooks don't run interactively)
But as:
[[pre-start]]
trust = "mise trust"
confirm = "trust this worktree?"
# or?
confirm = { default = true , prompt = "trust this worktree?" }
going through worktrunk to give me a Y/n ( or y/N? see default ) I think that would be very useful for basic hooks like this. I want to mise trust 99.9% of worktrees I create as they are just variants of my own projects, but not necessarily every worktree.
Alternatives considered:
- I could add this to every project config I work on
- I could build some kind of shell script that arbitrates trustable directories by policy
- I could just type
mise trust all the time
- I could put this in
[projects."github.com/user/repo"] in user settings
However, I think of the above, none is as elegant as simply offering some basic control flow to global user hooks.
I wanted something like:
(which doesn't work, because hooks don't run interactively)
But as:
going through worktrunk to give me a Y/n ( or y/N? see
default) I think that would be very useful for basic hooks like this. I want tomise trust99.9% of worktrees I create as they are just variants of my own projects, but not necessarily every worktree.Alternatives considered:
mise trustall the time[projects."github.com/user/repo"]in user settingsHowever, I think of the above, none is as elegant as simply offering some basic control flow to global user hooks.