mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-29 21:25:23 +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:
parent
9c99670add
commit
1f9d67c57a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user