Repository navigation
v2.29.0
Fixes
fuck --list-rulesand 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-rulestherefore captured the rule list and executed every rule name as a command (the list contains names such asjava,history,man,openandsudothat are real commands), andfuck --jsonexecuted the JSON report. The bash, zsh, fish and PowerShell aliases now pass--help,--version,--doctor,--list-rules,--json,--setup,--aliasand--shell-loggerthrough 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 vetand 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 --jsonandfuck --doctorprint their output without evaluating it, whilefuckstill 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