Christopher Allen Lane
9b92261604
feat: migrate from docopt to cobra for CLI argument parsing
...
Replace docopt-go with spf13/cobra, giving cheat a built-in
`--completion` flag that dynamically generates shell completions for
bash, zsh, fish, and powershell. This replaces the manually-maintained
static completion scripts and resolves the root cause of multiple
completion issues (#768 , #705 , #633 , #632 , #476 ).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-15 18:19:20 -05:00
Christopher Allen Lane
f61203ac1b
feat: add -b/--brief flag for compact list output ( #505 )
...
Add a --brief flag that lists cheatsheets with only title and tags,
omitting the file path column. Can be used standalone (-b) or combined
with --list (-lb), and composes with existing filters (-t, -p).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-15 12:21:35 -05:00
Christopher Allen Lane
cc85a4bdb1
chore: bump version to 4.5.0
...
Bug fixes:
- Fix inverted pager detection logic (returned error instead of path)
- Fix repo.Clone ignoring destination directory parameter
- Fix sheet loading using append on pre-sized slices
- Clean up partial files on copy failure
- Trim whitespace from editor config
Security:
- Add path traversal protection for cheatsheet names
Performance:
- Move regex compilation outside search loop
- Replace string concatenation with strings.Join in search
Build:
- Remove go:generate; embed config and usage as string literals
- Parallelize release builds
- Add fuzz testing infrastructure
Testing:
- Improve test coverage from 38.9% to 50.2%
- Add fuzz tests for search, filter, tags, and validation
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
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 19:56:19 -05:00
Christopher Allen Lane
95a4e31b6c
chore(deps): upgrade dependencies
...
Upgrade all dependencies to newest versions.
2023-12-13 08:29:02 -05:00
Chris Lane
b9c86b6975
chore(dependencies): update dependencies
2020-11-03 17:59:56 -05:00
Chris Lane
49afd7c16b
feat: modify return codes
...
Modify exit codes. `cheat` now returns an exit code value `2` on errors
pertaining to a cheatsheet not being found.
BREAKING CHANGE
2020-06-25 18:38:03 -04:00
Chris Lane
c9840c2d6f
docs(autocompletion): update autocompletion docs
...
Update the autocompletion documentation (in `README` and `man` page) to
include information about configuring `zsh` autocompletion script.
2020-04-07 18:47:35 -04:00
Chris Lane
38b13655fe
chore(version): bump version to 3.8.0
2020-03-24 20:54:40 -04:00
Chris Lane
749d5c1182
docs(man): implement manpage
...
- Implement `make man` to generate a manpage
- Change verb tense in `make` help text
2020-03-24 20:46:48 -04:00