Skip to content

v2.28.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:08
· 32 commits to main since this release

Features

  • --output-from FILE fixes a command without re-running it. Editor plugins, terminal integrations and AI agents usually captured the output of the failed command already, but go-fuck re-ran the command to get it. The new option (or - for standard input) takes the output from the caller instead: side effects are not repeated and a command that can no longer be run can still be fixed. The text is normalized like captured output (a UTF-8 byte order mark is dropped and CRLF endings become LF) and the option requires --force-command:

    $ go-fuck --json --force-command "git push" --output-from failed-output.log
    $ cat failed-output.log | go-fuck --json --force-command "git push" --output-from -
  • Command line errors are printed before the usage line. A misuse such as --output-from without --force-command now explains itself instead of printing only the short usage text.

Verification

  • Full test suite, gofmt, go vet and the rule list check pass; CI is green on Linux, macOS and Windows with lint and the 94% coverage gate (94.9% measured).
  • Distribution manifests are regenerated for 2.28.0 and the AUR package is published as 2.28.0-1.
  • Live checks: the supplied output of cat internal ("Is a directory") produces the ls internal suggestion from the cat_dir rule through both a file and standard input, without re-running the command; a missing file and a missing --force-command report clear errors.

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.28.0.

Changelog

  • dcf576e: feat(cli): add --output-from to fix a command without re-running it (@leafevans)

Full Changelog: v2.27.0...v2.28.0