mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-25 05:47:57 +02:00
Allow default value for boolean select
Default for both service delete conformation and disabling Maloja autofix is now "no".
This commit is contained in:
parent
6c1cf2101d
commit
76fd7cfeb4
3 changed files with 17 additions and 8 deletions
|
@ -38,7 +38,10 @@ var serviceDeleteCmd = &cobra.Command{
|
|||
cobra.CheckErr(err)
|
||||
|
||||
// Prompt for deletion
|
||||
delete, err := cli.PromptYesNo(i18n.Tr("Delete the service configuration \"%v\"?", service))
|
||||
delete, err := cli.PromptYesNo(
|
||||
i18n.Tr("Delete the service configuration \"%v\"?", service),
|
||||
false,
|
||||
)
|
||||
cobra.CheckErr(err)
|
||||
|
||||
if !delete {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue