All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- changed
HookBefore
andHookAfter
to have access to the command object that is about to be / has been executed.
- fixed flag reset behaviour for slice/array flags by using casting to
SliceValue
and usingSliceValue.Reset()
by @avirtopeanu-ionos in #3- In v1.0.1 and before, including in the original cobra-prompt repository, the defaults would be appended to the values of the previous execution
- added the option to set custom flag reset behaviours by @avirtopeanu-ionos in #2
- added completions for flag values. by @avirtopeanu-ionos in #1
- default cache duration for responses set to 500ms - to prevent laggy user interaction
- support flag descriptions by splitting on
\t
- added
HookBefore
andHookAfter
for additional actions before and after command execution.
PersistFlagValues
behavior:- instead of adding a flag, setting PersistFlagValues to true will directly influence persistance throughout the entire shell session.
- instead of resetting flags to their default value every time a new character is typed, flag defaults are set after a command execution.