From 1f9d67c57a79ba84e2c41c7de1f8f5c8fa6a60ac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 11:22:57 +0100 Subject: [PATCH] Update module github.com/erikgeiser/promptkit to v0.8.0 (#652) * Update module github.com/erikgeiser/promptkit to v0.8.0 * :art: 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 --------- Signed-off-by: Itxaka Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Itxaka Co-authored-by: Itxaka --- internal/agent/interactive_install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/interactive_install.go b/internal/agent/interactive_install.go index 05ec3eb..6db6faa 100644 --- a/internal/agent/interactive_install.go +++ b/internal/agent/interactive_install.go @@ -30,7 +30,7 @@ func prompt(prompt, initialValue, placeHolder string, canBeEmpty, hidden bool) ( input.InitialValue = initialValue input.Placeholder = placeHolder if canBeEmpty { - input.Validate = func(s string) bool { return true } + input.Validate = func(s string) error { return nil } } input.Hidden = hidden