dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
1.02k stars 34 forks source link

feat: allow user to --deny-read for the cwd #182

Closed leighmcculloch closed 2 months ago

leighmcculloch commented 1 year ago

What

Allow the user to deny dax from reading the current working directory, by checking if read permission has been denied.

Why

It's not always necessary for scripts to access the current working directory.

Note that if --deny-read=. is not passed, and reading the path has not been allowed, then this change will still prompt.