Skip to content

Releases: ionoscloudsdk/comptplus

v1.0.4

06 Dec 15:59
1e590fb
Compare
Choose a tag to compare

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

Full Changelog: v1.0.3...v1.0.4

v1.0.3

06 Dec 09:49
Compare
Choose a tag to compare

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

24 Nov 11:57
Compare
Choose a tag to compare

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

23 Nov 12:04
91b8171
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

22 Nov 15:33
Compare
Choose a tag to compare

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

v1.0.0-rc.9

22 Nov 10:20
Compare
Choose a tag to compare
v1.0.0-rc.9 Pre-release
Pre-release

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

17 Nov 15:19
Compare
Choose a tag to compare
v1.0.0-rc.8 Pre-release
Pre-release

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

17 Nov 15:18
Compare
Choose a tag to compare
v1.0.0-rc.7 Pre-release
Pre-release
test rel

v1.0.0-rc.6

16 Nov 13:55
Compare
Choose a tag to compare
v1.0.0-rc.6 Pre-release
Pre-release

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

16 Nov 13:23
42bd7e3
Compare
Choose a tag to compare
v1.0.0-rc.5 Pre-release
Pre-release

Fix a bug with flags being repeatedly set to their .DefValue if using the history stack (up arrow)