Skip to content

Complete v2

Pre-release
Pre-release
Compare
Choose a tag to compare
@posener posener released this 17 Nov 23:12
· 51 commits to master since this release
a7d83cc

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.