Skip to content

feature request: option to approve user hooks #3093

Description

@endigma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions