Skip to content

Add tail --detect example to root help text - #58

Merged
lenny-ts merged 1 commit into
lenny-ts:mainfrom
dchaudhari7177:add-tail-detect-example
Aug 29, 2026
Merged

Add tail --detect example to root help text#58
lenny-ts merged 1 commit into
lenny-ts:mainfrom
dchaudhari7177:add-tail-detect-example

Conversation

@dchaudhari7177

Copy link
Copy Markdown
Contributor

Closes #41

Adds the missing line to the Examples: block in cmd/root.go, next to the existing tail example.

Verified from a build of this branch:

Examples:
  caddy-analyze /var/log/caddy/access.log
  caddy-analyze --detect /var/log/caddy/access.log
  caddy-analyze --ip 10.0.0.0/8 access.log
  caddy-analyze --5xx --no-bots access.log
  caddy-analyze tail --ip 192.168.1.100 docker://caddy
  caddy-analyze tail --detect docker://caddy
  caddy-analyze top ip --5xx -t 20 access.log
  caddy-analyze diff base.log current.log

Placed directly after the other tail line so the two tail forms read together, and it keeps the block's existing shape: simplest invocation first, then the flag variants.

go vet ./... clean, go test ./... all packages pass.

@lenny-ts
lenny-ts merged commit a2fb2b5 into lenny-ts:main Aug 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants