Releases: ionoscloudsdk/comptplus
v1.0.4
This release switches to a more actively maintained fork of go-prompt, inherently fixing a bug related to CTRL + C no longer working in the terminal after spawning a go-prompt session.
What's Changed
- dep: bump to elk-lang/go-prompt by @avirtopeanu-ionos in #5
Full Changelog: v1.0.3...v1.0.4
v1.0.3
What's Changed
- feat: pre, postrun hooks now have access to the current command by @avirtopeanu-ionos in #4
- add error throwing to hookBefore, hookAfter
Full Changelog: v1.0.2...v1.0.3
v1.0.2
What's Changed
- fix: Improve flag value resets between command executions for flags that use Slices (i.e.
StringSlice
) by @avirtopeanu-ionos in #3
Full Changelog: v1.0.1...v1.0.2
v1.0.1
What's Changed
- feat: added custom flag reset behaviours by @avirtopeanu-ionos in #2
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Release v1.0.0 of ComptPlus
This is the initial release of ComptPlus, a fork of cobra-prompt
. Below are the key updates and changes:
Completions for Flag Values
- Autocomplete support for flag values.
- Default cache duration for responses set to 500ms.
Hooks: HookBefore, HookAfter
- Added
HookBefore
andHookAfter
for additional actions before and after command execution.
Refactor
- Codebase refactored for easier maintenance of
findSuggestions
.
Persist Flag Values
- Changes in
PersistFlagValues
behavior- Rather than adding a flag, setting
PersistFlagValues
to true will directly influence persistance throughout the entire shell session. - Rather than resetting flags to their default value every time a new character is typed, flag defaults are set after a command execution
- Rather than adding a flag, setting
v1.0.0-rc.9
persist flags, prevent panics on unset hooks, migrate repo to ionoscloudsdk, refactor getCurrentFlagAndValueContext
Full Changelog: v1.0.0-rc.8...v1.0.0-rc.9
v1.0.0-rc.8
Improve flag value context finder func. Now flag value suggestions will only show up when appropriate.
There also is now a customizable delay between getting flag value suggestions to allow the user to rapidly delete long flag values without lag/intrerruption due to API calls / other expensive operations
v1.0.0-rc.7
test rel
v1.0.0-rc.6
Added HookBefore
and HookAfter
config options which allow you to specify what happens before & after a command is executed - for example resetting Viper configuration.
v1.0.0-rc.5
Fix a bug with flags being repeatedly set to their .DefValue
if using the history stack (up arrow)