Skip to content

v0.1.4

Choose a tag to compare

@evanmschultz evanmschultz released this 16 May 22:37
· 3 commits to main since this release
51d3de7

Bug fixes

  • rak <file> no longer crashes (#6). Previously, running rak against a single file crashed with Lister: detect: fork/exec git: not a directory because the lister set cmd.Dir to the file path before probing git. The lister now recognizes regular files and returns a dedicated SingleFileLister before any git operations. Output shape matches a directory walk with one file entry (label = user-supplied filename).
  • Symlinked walk-roots now work correctly (#6). rak <symlink> could previously emit zero results because filepath.Abs doesn't resolve symlinks but git rev-parse --show-toplevel does — the prefix mismatch silently filtered out every path. Detect now calls filepath.EvalSymlinks before any stat or git probe so the resolved real path drives both checks. The same fix lets symlinked single-files work end-to-end.

Maintenance

  • Six new tests in internal/lister and cmd/rak covering single files, symlinked files, symlinked directories, broken symlinks, and end-to-end single-file output.
  • runDirectoryOpts struct docstring reworded for accuracy.
  • README "Common invocations" gains a rak CLAUDE.md example.

Full changelog: v0.1.3...v0.1.4