Skip to content

Add verbosity levels#1

Open
inkel wants to merge 3 commits into
mainfrom
expand-verbosity
Open

Add verbosity levels#1
inkel wants to merge 3 commits into
mainfrom
expand-verbosity

Conversation

@inkel

@inkel inkel commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Without -v it only prints the filename and range of the match; with a single -v it prints the filename, range of the match, and matching line; and finally with any additional -v it includes the whole block.

Note that for doing this we rely on the bytes.Lines iterator introduced in Go 1.23, so we need to upgrade to that version too.

inkel added 2 commits March 5, 2026 15:17
Without `-v` it only prints the filename and range of the match; with
a single `-v` it prints the filename, range of the match, and matching
line; and finally with any additional `-v` it includes the whole
block.

Note that for doing this we rely on the `bytes.Lines` iterator
introduced in Go 1.23, so we need to upgrade to that version too.
@inkel inkel requested a review from Copilot March 5, 2026 18:26
@inkel inkel self-assigned this Mar 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants