mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-29 13:27:03 +02:00
Implemented service delete command
This commit is contained in:
parent
7f2db58462
commit
543a9c666d
5 changed files with 123 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue