You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- runHelpPatterns now treats `-f` without a value as exit-2 usage error,
and rejects unexpected positional arguments. Previous behavior fell
back to text output silently for both cases.
- parseFrontMatter explicitly detects a missing closing `---` and any
scanner error, returning a clear "unterminated front matter" error
instead of silently scanning past the front-matter region.
- Replace the unreachable rules.ListRules error branches in
cachedRuleInfo, handleRulePatterns, and runHelpPatterns with comments
noting why the embedded-FS read cannot fail at runtime. showRule now
delegates to a new ruledocs.LookupRuleInfo helper that consolidates
the list-and-find step into a single error path.
- Drop the unreachable json.Encode error branch in runHelpPatterns
(encoding plain string/bool fields cannot fail).
- Add tests for the new error UX, the unterminated-front-matter
detection, and LookupRuleInfo's success and failure paths.
0 commit comments