Releases: posener/complete
Releases · posener/complete
Switch to Go 1.20 errors package
v2.0.1-alpha.13: fix crash when COMP_POINT is greater than COMP_LINE size (#128)
Some shells (inexplicably) occasionally have a COMP_POINT that is greater than the COMP_LINE size. When that happens completion should be based on length of the COMP_LINE to avoid an out of bounds error. See the original hack fix here: https://github.com/chriswalz/bit/blob/master/cmd/bitcomplete.go on line 39
Update module import path to v2
- Move install pacakge back to module root
- Use script library for installtion
Complete v2
This is a major change in the package.
I saw that major clients are using go modules, so for them this transition should be transparent.
This change provides:
- Improved completion logic, from completion order to treating quotes and spaces.
- Expose the
Completer
interface, which enables any CLI library to use this completion implementation. - Simplify and improve library API.
- Add automatic flag bash completion for the standard library
flag
package. - Add ./compflag pacakge, which provides standard library flags with bash completion enables.
v1.2.3: Merge pull request #103 from posener/gocomplete-mod
Remove gocomplete module files
Fix complete error
Merge pull request #102 from posener/sub-cmd-bug Fix off-by-one error for argument from method
v1.2.1: Merge pull request #75 from posener/fix-slice-bug
Protect line slicing from index out of range
Add support for COMP_POINT
Merge pull request #73 from posener/point Add support for CMP_POINT
v1.1.2
Fix file creation when directory does not exists
Merge pull request #60 from posener/fix-59 install: create file directory before file is created