feat: add title banner, non-interactive mode, and richer output - #5
Merged
Conversation
Print a big ASCII title banner with a description on every run. Add a non-interactive flag interface (--file/--who/--perm) alongside the existing interactive prompts, plus --all (owner/group/other matrix), --no-color, --help, and --version. Skip blank and # comment lines in the input file, add a granted/denied/skipped summary, and support both GNU and BSD/macOS stat so it runs on Linux and macOS without GNU coreutils.
iamteedoh
pushed a commit
that referenced
this pull request
Jul 16, 2026
🤖 I have created a release *beep* *boop* --- ## [0.2.0](v0.1.0...v0.2.0) (2026-07-16) ### Features * add title banner, non-interactive mode, and richer output ([#5](#5)) ([92b6eac](92b6eac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the permission checker look and feel more polished, and adds a scriptable
non-interactive mode alongside the existing interactive prompts.
--file/--who owner|group|other/--perm read|write|execute. Missing values still prompt when a TTY is attached; otherwise the script exits with a clear error (no hanging in CI/pipes).--all(owner/group/other permission matrix),--no-color(also honorsNO_COLOR),--help,--version.YES/NO/SKIPlines and a granted/denied/skipped summary.#comments.stat: auto-detects GNU (-c) and BSD/macOS (-f), so it runs on macOS without GNU coreutils. Kept bash 3.2 compatible.Validation
shellcheck dirPathPerms.sh— clean (v0.11.0)bash -n dirPathPerms.sh— pass--allmatrix,--help/--version, all error paths (exit 2), and piped no-color output.Jira: DIR-1