Skip to content

v0.6.2

Choose a tag to compare

@jjo jjo released this 08 Oct 08:48
· 8 commits to main since this release
v0.6.2
1103184

Highlights

  • Shell completion: promql-cli completion bash|zsh|fish, generated from the CLI definition.
  • --version: plus real version/commit for any build (falls back to Go build info without -ldflags), the Go version and the Prometheus module in use.
  • Multi-line input: paste or type multi-line PromQL; open (/[/{ or quotes continue on a ...> prompt, and the joined query runs once (one history entry).
  • Saved pins: .save records the pinned evaluation time (# promql-cli: pinat=...) and .load / promql-cli query <file> restore it; .load ... pinat=last|first|none|<timespec>|<selector>.
  • --repl=prompt fixes: Ctrl-C interrupts running commands, Ctrl-Z suspends, Ctrl-R reverse search, readline-identical word editing, experimental function completion (e.g. time_to_threshold(), nested file-path completion for .rules/.load/.source/.save.
  • Parsing: now-7d and other d/w/y durations; | inside '...' or `...` no longer treated as a shell pipe; .prom_scrape rejects range-style arguments.
  • Rules: ALERT results print after status output, formatted like PromQL samples.

Docker: docker run --rm -it xjjo/promql-cli:v0.6.2 (linux/amd64, linux/arm64).

What's Changed

  • feat: shell completion, multi-line input, saved pins, prompt REPL fixes by @jjo in #86

Full Changelog: v0.6.1...v0.6.2