Skip to content

Fix --watch mode display and update README docs - #54

Merged
coldhighsun merged 2 commits into
mainfrom
fix/watch-mode-display
Sep 15, 2026
Merged

coldhighsun merged 2 commits into
mainfrom
fix/watch-mode-display

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • Fix --watch mode printing the version/path banner twice and never showing the live table until Ctrl+C (only refreshed on file changes; now renders immediately and clears on exit)
  • Document --git-hash and --no-gitattributes, previously missing from the README options table
  • Add README examples for --exclude-dir, --watch, --unique, standalone --git-hash, and --list-file

Test plan

  • dotnet build Sloc.slnx
  • Manually run sloc . --watch and confirm banner prints once and table shows immediately

The generic banner printed unconditionally before dispatching to watch
mode, so ExecuteWatch's own banner made the version/path print twice.
The live table also never flushed until Ctrl+C, since the loop only
refreshed on a detected file change. Now watch mode prints its banner
once, renders the initial table immediately, and clears the table on
exit.
…ples

The README's options table omitted --git-hash and --no-gitattributes
entirely despite CLAUDE.md documenting both. Also added examples for
--exclude-dir, --watch, --unique, standalone --git-hash, and
--list-file to the usage sections.
@coldhighsun
coldhighsun merged commit 5cc6544 into main Sep 15, 2026
9 checks passed
@coldhighsun
coldhighsun deleted the fix/watch-mode-display branch September 15, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant