Fix --watch mode display and update README docs - #54
Merged
Merged
Conversation
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.
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
--watchmode 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)--git-hashand--no-gitattributes, previously missing from the README options table--exclude-dir,--watch,--unique, standalone--git-hash, and--list-fileTest plan
dotnet build Sloc.slnxsloc . --watchand confirm banner prints once and table shows immediately