8 Commits

Author SHA1 Message Date
benvin c816909a76 Merge pull request 'Drop chcat/chtail/chgrep symlink entrypoints; ship chlog subcommands only' (#3) from benvin/drop-symlinks into main
ci/woodpecker/tag/release Pipeline was successful
Reviewed-on: #3
v0.1.2
2026-08-23 21:45:40 +10:00
unkin-agent ee2f270abc Drop chcat/chtail/chgrep symlink entrypoints; ship chlog subcommands only
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The RPM's /usr/bin/chcat conflicts with SELinux's
policycoreutils-python-utils on Fedora. Per Ben: remove the symlink
entrypoints entirely and ship only the chlog binary with cat/tail/grep
subcommands.

- Remove chcat/chtail/chgrep symlinks and their completions from
  nfpm.yaml, build-rpm.sh and the Makefile
- Remove the argv[0] dispatch in main.go; subcommands are unchanged
- Update the completion test to cover chlog only
- Update README usage to chlog cat|tail|grep
2026-08-23 21:39:17 +10:00
benvin dfd4efd782 Merge pull request 'Make build-rpm.sh executable and test completion generation' (#2) from benvin/completion-fix into main
ci/woodpecker/tag/release Pipeline was successful
Reviewed-on: #2
v0.1.1
2026-08-23 19:00:54 +10:00
unkin-agent a849c26509 Make build-rpm.sh executable and test completion generation
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The v0.1.0 tag pipeline failed at the package step: build-rpm.sh was
committed mode 100644, so CI's ./scripts/build-rpm.sh invocation died
with permission denied before any completions were generated.

- Restore the executable bit on scripts/build-rpm.sh (mode 100755,
  matching node-lookup)
- Add TestCompletionAllEntrypointsAndShells covering bash/zsh/fish
  completion generation through the argv[0] dispatch for all four
  entrypoints (chlog/chcat/chtail/chgrep)
2026-08-23 17:29:23 +10:00
benvin d09c671013 Merge pull request 'Add chlog CLI with chcat/chtail/chgrep entrypoints' (#1) from benvin/initial into main
ci/woodpecker/tag/release Pipeline failed
Reviewed-on: #1
v0.1.0
2026-08-23 17:18:28 +10:00
unkin-agent 4d78ed534b Fix errcheck lint failures in CI
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
golangci-lint errcheck flagged six unchecked error returns, failing the
pr/test workflow's lint step and skipping tests.

- Blank-assign hash writes in Row.Key and MarkHidden calls
- Close response body via deferred func matching node-lookup convention
- Read test request body with io.ReadAll instead of a single Body.Read
2026-08-23 16:49:32 +10:00
unkin-agent 415bf0cce1 Add chlog CLI with chcat/chtail/chgrep entrypoints
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Single Go binary for the ClickHouse log store (logs.raw): chlog with
cat/tail/grep subcommands, plus chcat/chtail/chgrep argv[0]-dispatched
symlink entrypoints. Every query is time-bounded and fully parameterized;
chgrep guards wide unfiltered scans. Ships nfpm RPM with completions and
woodpecker PR/tag pipelines mirroring node-lookup.
2026-08-23 16:43:05 +10:00
gitadmin 2bafa83ad8 Initial commit 2026-08-23 12:41:01 +10:00