Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Dec 04:31
f10d298

Highlights

  • Every process at once: witr all explains every running process in one run, or only those matching --user, --source, --since, --listening, --parent or --warnings. Read it per process, grouped by source (--summary), as one merged tree (--summary --tree), or as JSON to keep from a cron job or systemd timer. #263
  • Where the logs are: the Source section gains a Logs line: journalctl for systemd units (user units too), the launchd job's log files or log show, Event Viewer for Windows services, docker/podman/nerdctl logs for containers, pm2 logs and supervisorctl tail. #267
  • Cron jobs and process managers: programs run by cron, pm2, supervisord, circus, runit, s6, monit, god or nssm are credited to them instead of systemd or launchd. #268
  • launchd jobs on macOS: background processes name the job that runs them, with its plist and log files, instead of "launchd" and a name-mismatch warning. #269
  • Process actions on Windows: the interactive view can kill, terminate, pause, resume and renice processes on Windows. #248
  • Interactive view on Bubbletea v2: no 5-second pause in terminals that don't answer colour queries, smooth scrolling with fast wheels, touchpads and MobaXterm, and a clean exit when the terminal closes or SSH drops. #270
  • GitHub Action: setup-witr installs a verified witr on Linux, macOS and Windows runners, with recipes for a busy port and leftover processes. Release files now carry signed build provenance: gh attestation verify <file> --repo pranshuparmar/witr. #271
  • README and playground in 16 languages.
  • Many more fixes, including other users' ports on macOS without sudo, FreeBSD jails and rc.d services, Windows services and containers: see #266.

Upgrade notes

  • --json no longer includes environment variables. The full report carried the environment of the target, its ancestors and its children, which put tokens from your shell into an agent's context. Use --env --json for the target's environment. #261 #262
  • Building from source needs Go 1.26. #264
  • --file takes one path per value: a comma is part of the path. Repeat the flag for several files.
  • An empty target value is an error: --pid "" (an unset variable, say) exits 4 instead of being ignored.
  • JSON leaves out times witr doesn't know (StartedAt, a container's CreatedAt) instead of printing 0001-01-01T00:00:00Z.

What's Changed

  • test(proc): make TestDetectGitInfo hermetic against repos above the temp dir by @CJstate in #245
  • build: ship shell completions in deb/rpm/apk packages and the Nix flake by @Self-Perfection in #246
  • fix(tui): preserve numeric input in locks search by @chojs23 in #247
  • fix(output): escape Unicode line separators in single-line fields by @CJstate in #251
  • fix(output): omit leading space when security module is empty by @CJstate in #254
  • fix(launchd): balance dict depth after calendar interval by @CJstate in #258
  • fix(proc): parse --flag=value in container flag extraction by @CJstate in #259
  • fix(output)!: omit environment variables from the full --json report by @mabhub in #262
  • fix(target): match exact names inside quoted command-line paths by @CJstate in #260
  • feat: v0.4.0 Main PR by @pranshuparmar in #274

New Contributors

Full Changelog: v0.3.4...v0.4.0