Implemented service delete command

This commit is contained in:
Philipp Wolfer 2023-12-08 17:27:04 +01:00
parent 7f2db58462
commit 543a9c666d
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 123 additions and 4 deletions

View file

@ -59,8 +59,12 @@ func PromptSecret(opt models.BackendOption) (string, error) {
}
func PromptBool(opt models.BackendOption) (bool, error) {
return PromptYesNo(opt.Label)
}
func PromptYesNo(label string) (bool, error) {
sel := promptui.Select{
Label: opt.Label,
Label: label,
Items: []string{"Yes", "No"},
}
_, val, err := sel.Run()