Skip to content

v2.29.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 04:11
· 27 commits to main since this release

Fixes

  • fuck --list-rules and the other information commands work through the shell function. The shell function evaluates go-fuck's standard output as the corrected command, and the information commands print their result there. fuck --list-rules therefore captured the rule list and executed every rule name as a command (the list contains names such as java, history, man, open and sudo that are real commands), and fuck --json executed the JSON report. The bash, zsh, fish and PowerShell aliases now pass --help, --version, --doctor, --list-rules, --json, --setup, --alias and --shell-logger through to go-fuck, so their output stays on the terminal.

Updating the alias

The alias format version moves to 3. An alias generated by go-fuck 2.28 and older keeps working for corrections, but it still evaluates the information commands. The next shell start replaces it because the configuration file evaluates go-fuck --alias; to update a running shell, evaluate the alias again (eval "$(go-fuck --alias)" in bash and zsh, iex "$(go-fuck --alias)" in PowerShell) or run go-fuck --setup. go-fuck now warns when it detects an older alias, including the PowerShell reload command.

Verification

  • Full test suite (including behavior tests that run the generated bash and PowerShell aliases against a stub go-fuck), gofmt, go vet and the rule list check pass; CI is green on Linux, macOS and Windows with lint and the 94% coverage gate.
  • Live checks in WSL bash, WSL zsh and PowerShell: fuck --list-rules, fuck --json and fuck --doctor print their output without evaluating it, while fuck still evaluates a correction.
  • Distribution manifests are regenerated for 2.29.0 and the AUR package is published as 2.29.0-1.

Upgrade

Homebrew, Scoop and AUR update through their package managers; go install github.com/leafevans/go-fuck/v2/cmd/go-fuck@latest picks up 2.29.0.

Changelog

  • dd7c9f1: feat(alias): pass the information commands through the shell function (@leafevans)
  • 9ea3511: test: check the shell logger invocation in the fallback alias (test-only fix, omitted by the changelog filter)

Full Changelog: v2.28.0...v2.29.0