mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-31 16:39:20 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user