Skip to content

v0.7.2 (bêta)

Pre-release
Pre-release

Choose a tag to compare

@gnocent gnocent released this 20 Oct 05:35
· 26 commits to main since this release

TermDevTools v0.7.2 (beta)

Version française : CHANGELOG_fr.md

In one sentence: TermDevTools installs with go install, and completion keeps the query after the cursor and accepts a leading /.

What's new

  • go install github.com/gnocent/termdevtools@latest: the module now has the repository's path, and versions are tagged with three numbers (v0.7.2), the form Go recognizes. The binary goes to GOBIN, or $(go env GOPATH)/bin when it is unset. Prebuilt binaries remain the recommended way.
  • --version without a stamped version: a binary installed with go install gives the version installed, and one built with a plain go build in a clone gives the version Go derives from git (v0.7.3-0.<date>-<commit>, with +dirty if files were modified) instead of dev. go run still says dev.

Completion

  • Query after the cursor: completing _cat/ind in GET _cat/ind?format=json gives _cat/indices?v&format=json — the candidate's default parameters and your query under a single ? — instead of a second ?. Your query is kept as typed, and a key you set replaces the default with the same key.
  • Leading /: GET /_cat/pl completed nothing; it now gives GET /_cat/plugins?v, keeping the /. A /_cat/... entry in an endpoints.txt is also recognized as a _cat command, so its columns complete too.
  • A type-ahead search that matches nothing: Enter no longer inserts the entry left selected by an earlier search; it does nothing until the search is corrected (Backspace), cancelled (Esc) or replaced by an explicit choice — arrows, Tab, PgUp/PgDn, Home/End, or a click on an entry.

Development

  • tools/testclusters.sh runs with the /bin/bash 3.2 of macOS, and a test rejects the Bash 4 constructs that broke it.

Thanks to @efd6 for the request (#1) and to @amineamanzou for the changes (#3, #4, #6).

Before upgrading from 0.7

  • Nothing to do: config.yaml, saved requests and reference files are read as before.
  • Completion: Enter right after a type-ahead search that found nothing no longer inserts anything; pick an entry with the arrows or a click.

Checks

  • go vet and go test ./... pass, run on Windows: unit tests, end-to-end tests of the interface on a simulated screen — completion with both Elasticsearch's and OpenSearch's reference data — and a real go install of the module, served from a local proxy, offline.
  • govulncheck: no known vulnerability, neither in the dependencies nor in the standard library of Go 1.27.2, which the binaries are built with.
  • The reference data (recipes, endpoints, _cat columns) has not changed since 0.6, and its checks against eleven real clusters are those of 0.6.
  • The test cluster script was not run on a Mac.
  • No independent external audit was carried out.

Known limits

  • go install …@v0.7.1 and earlier versions do not work: they declared another module path.
  • The limits of 0.7 still apply: see the changelog.

Binaries

One self-sufficient file per platform — no archive and no companion file:

  • termdevtools-linux-amd64 — Linux x86-64 (static binary)
  • termdevtools-windows-amd64.exe — Windows 10/11 x64
  • termdevtools-darwin-arm64 — macOS Apple Silicon
  • SHA256SUMS — SHA-256 checksums of the three files

Download the file for your platform and SHA256SUMS, check it (sha256sum -c SHA256SUMS --ignore-missing on Linux), make it executable (chmod +x, Linux and macOS), run it: termdevtools --version answers termdevtools v0.7.2. The binaries are not signed. Step by step, platform by platform: INSTALL.md (français).