feat: add auto-allow/deny rules mkdir #6
Loading…
Reference in a new issue
No description provided.
Delete branch "mkdir-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I typically revoke commands that can write to disk, but I decided mkdir
could be an exception since it's in the realm of editing projects.
I wanted to make allow it to write the current working directory, but
not allowed to write outside of the current working directory. It will
default to ask, unless the user is in edit mode, in which case it'll
auto-approve similarly to how editing files is auto-approved.
This should've been done separately, but whatever. I also refactored all
hooks to share a "helpers.sh" file, which has some utilities and
repetitive boiler plate.
mentioned in commit
68a53a267d