Skip to content

v1.0.0

Compare
Choose a tag to compare
@avirtopeanu-ionos avirtopeanu-ionos released this 22 Nov 15:33
· 8 commits to main since this release

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.

image

Hooks: HookBefore, HookAfter

  • Added HookBefore and HookAfter 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