Update module github.com/erikgeiser/promptkit to v0.8.0 (#652)

* Update module github.com/erikgeiser/promptkit to v0.8.0

* 🎨 Adapt agent to new v0.8.0 promptkit version

Validation function for textinput now requires an error/nil instead of
a bool

Signed-off-by: Itxaka <itxaka@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
renovate[bot] 2023-02-04 11:22:57 +01:00 committed by Itxaka
parent 9c99670add
commit 1f9d67c57a

View File

@ -30,7 +30,7 @@ func prompt(prompt, initialValue, placeHolder string, canBeEmpty, hidden bool) (
input.InitialValue = initialValue input.InitialValue = initialValue
input.Placeholder = placeHolder input.Placeholder = placeHolder
if canBeEmpty { if canBeEmpty {
input.Validate = func(s string) bool { return true } input.Validate = func(s string) error { return nil }
} }
input.Hidden = hidden input.Hidden = hidden