Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: cheat/cheat

4.5.2

15 Feb 12:36

Choose a tag to compare

Bug Fixes

  • Static binaries: Build with CGO_ENABLED=0 to produce fully static binaries (#744)
  • Editor env vars: Respect $VISUAL and $EDITOR environment variables at runtime (#589)
  • .git in path: Fix cheatsheets being silently skipped when the cheatpath contains a directory ending in .git (#711)

Other Changes

  • Remove dead Homebrew formula bump workflow
  • Move ADRs from doc/adr/ to adr/ for discoverability

4.5.1

15 Feb 11:27

Choose a tag to compare

Bug fixes

  • Fix first-run experience (#721, #730, #771): Declining community cheatsheets during initial setup no longer causes errors on subsequent runs. config.New() now skips missing cheatpaths with a warning instead of a fatal error.

  • Fix --init output (#773): cheat --init now comments out the community cheatpath by default and includes clone instructions, so the output works as a config file without modification.

  • Fix stdin buffering in installer prompts: The installer's interactive prompts now read stdin without buffering, allowing cheat to be scripted (e.g., printf "y\nn\n" | cheat).

  • Fix frontmatter parsing on Windows: Line ending detection in cheatsheet frontmatter now inspects file content instead of checking runtime.GOOS, fixing parsing failures when files have Unix line endings on Windows.

Other changes

  • CI modernized: Go 1.26, GitHub Actions v4/v5, Windows added to test matrix
  • Dependencies updated (addresses dependabot CVEs in golang.org/x/crypto, golang.org/x/net)
  • End-to-end integration tests added for first-run experience
  • Dockerfile updated to Go 1.26

4.5.0

15 Feb 00:59

Choose a tag to compare

Bug Fixes

  • Fix inverted pager detection logic (returned error string instead of path)
  • Fix repo.Clone ignoring destination directory parameter
  • Fix sheet loading using append on pre-sized slices, causing nil entries
  • Clean up partial files on copy failure
  • Trim whitespace from editor config during loading

Security

  • Add path traversal protection for cheatsheet names

Performance

  • Move regex compilation outside search loop
  • Replace O(n²) string concatenation with strings.Join in search

Build & Testing

  • Remove go:generate; embed config and usage as string literals
  • Parallelize release builds
  • Add fuzz testing infrastructure
  • Improve test coverage from 38.9% to 50.2%

Documentation

  • Fix inaccurate code examples in HACKING.md
  • Add missing --conf and --all options to man page
  • Add ADRs for path traversal, env parsing, and search parallelization
  • Update CONTRIBUTING.md to reflect project policy

4.4.2

15 Dec 17:55

Choose a tag to compare

  • Bump chroma to newest version
  • Remove plan9 support due to build failure
  • Upgrade to yaml.v3

4.4.1

13 Dec 14:24
2294f40

Choose a tag to compare

  • Update dependencies
  • Make minor changes to appease revive (linter)

4.4.0

05 Nov 17:14
4.4.0
0d9c92c

Choose a tag to compare

  • Update dependencies
  • Remove errant yaml.v1 dependency, and use yaml.v2 everywhere.
  • Add experimental support for the following platforms:
    • aix
    • dragonfly
    • illumos
    • ios
    • netbsd
    • openbsd
    • plan9
    • solaris

4.3.3

28 Aug 02:10
4.3.3
bd9fa1b

Choose a tag to compare

  • fix(Sheets): .gitignore in cheatpath (#699)
  • feat(installer): use go-git to clone
  • refactor(repo): create repo package
  • chore: bump version to 4.3.3

4.3.2

26 Aug 18:09
4.3.2
db3d7e5

Choose a tag to compare

  • chore(deps): update dependencies
  • Do not strip leading or trailing newlines. Doing so had interferred with users' intended cheatsheet layouts. (#663 )
  • Move Frontmatter.Parse to Sheet.parse, and delete the frontmatter package. Sheet.parse more accurately describes the parser's behavior.
  • Update INSTALLING.md with more package information. (#677)
  • Fix an issue whereby make clean filed to remove assets created by make generate.
  • Fix a subsequent issue whereby make generate was being run too late in the make build target, which resulted in a build failure.
  • Improve the configuration documentation in configs/conf.yml (#656).
  • Resolve an issue whereby cheatsheets contained within git submodules were ignored due to a regression introduced in 4.3.1. (#694 )
  • chore: bump version to 4.3.2

4.3.1

09 Aug 01:05
4.3.1
0b80a60

Choose a tag to compare

  • fix(Sheets): cheatsheets in hidden directories (#690)
  • fix: no colorization on default install (#687)
  • feat(installer): set default editor
  • fix(installer): always use more pager on Windows
  • chore: bump version to 4.3.1

4.3.0

07 Aug 18:55
4.3.0
b53a14b

Choose a tag to compare

  • Upgrade to Go 1.19
  • Upgrade dependencies
  • Fix colorization without pager (#687)
  • Add the --conf command to show config file path
  • Bump version to 4.3.0