Repository navigation
fix(cli): honour audit filters and --no-scan, and fix piped and coloured output - #202
Merged
Merged
Conversation
…red output - hk audit --kind and --severity were parsed and ignored; they now filter. - hk audit scanned twice and --no-scan skipped only the second scan; it now scans once, and not at all with --no-scan. - Printing into a closed pipe (hk list --json | head -1) panicked on Unix. - Coloured cells counted their ANSI codes as width, misaligning tables. - hk list agents --json returned an error; it now prints JSON. - An unknown --kind value is rejected instead of ignored, and the help lists cli. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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.
Fixes
hk audit --kindand--severitywere parsed and ignored--kindby extension kind,--severityby minimum finding severityhk auditscanned twice, and--no-scanskipped only the second scan--no-scanhk list --json | head -1panicked with a broken-pipe errorhk list agents --jsonreturned an errornameanddetectedper agent--kindhelp left outcliBehaviour change
An unknown
--kindor--severityvalue is now an error.hk list --kind <typo>used to list everything.Notes
custom_stylingfeature adds eight transitive crates;libcis added on Unix for the SIGPIPE reset.hk servekeeps ignoring SIGPIPE.Testing
cargo fmt,cargo clippy -D warnings,cargo test -p hk-cli -p hk-core, website tests and build.🤖 Generated with Claude Code