Skip to content

feat: add find and grep aliases for search - #162

Merged
MoonCaves merged 4 commits into
mainfrom
feat/search-aliases-tick1175
Nov 17, 2026
Merged

MoonCaves merged 4 commits into
mainfrom
feat/search-aliases-tick1175

Conversation

@MoonCaves

@MoonCaves MoonCaves commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Adds Cobra's native find and grep aliases for search, as planned in the published roadmap. Both names use the existing search handler. Native help lists the aliases, search usage and --query; the README documents how to search for a literal leading find or grep.

Validation:

  • Go 1.24 focused CLI race tests and a pure Go build.
  • Isolated full-JSON equivalence probes for aliases, explicit search and literal-query forms.
  • Canonical provenance check: three approvals, zero rejections.

CI on the merged head completed successfully: lint, Go 1.24.0 and stable builds with race tests.

Use the existing search command and Cobra alias field. Document literal-query escapes and mark only this roadmap slice shipped.

Prior-Art: spf13/cobra command_test.go L274-L282 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go
Add the exact published roadmap source for the already-planned alias vocabulary. Runtime assignment, help and handlers are unchanged.

Prior-Art: spf13/cobra command_test.go L274-L282 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go

Prior-Art: MoonCaves/rawclaw ROADMAP.md L136-L139 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/cli/cli.go
@MoonCaves
MoonCaves marked this pull request as ready for review November 17, 2026 09:39
Remove only the custom search Long field. Native Cobra help already lists search, find and grep, the search usage and the existing query flag. Keep the accepted baseline Short and handler unchanged; README retains measured literal-query guidance.

Prior-Art: spf13/cobra command_test.go L274-L282 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go

Prior-Art: MoonCaves/rawclaw internal/cli/cli.go L169-L180 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/cli/cli.go

Prior-Art: MoonCaves/rawclaw ROADMAP.md L136-L139 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/cli/cli.go
@MoonCaves
MoonCaves merged commit 999016f into main Nov 17, 2026
3 checks passed
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