From 0b8495e96421bea3e0533677333045786be49c24 Mon Sep 17 00:00:00 2001 From: Pavel Sviderski Date: Thu, 1 May 2025 14:12:12 +1000 Subject: [PATCH] feat: make all confirmation forms accessible --- cmd/uncloud/service/scale.go | 2 +- internal/cli/cli.go | 2 +- internal/cli/prompt.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/uncloud/service/scale.go b/cmd/uncloud/service/scale.go index 222f10ea..30909d9e 100644 --- a/cmd/uncloud/service/scale.go +++ b/cmd/uncloud/service/scale.go @@ -143,7 +143,7 @@ func confirm() (bool, error) { Negative("No"). Value(&confirmed), ), - ) + ).WithAccessible(true) if err := form.Run(); err != nil { return false, err } diff --git a/internal/cli/cli.go b/internal/cli/cli.go index cf408082..16f91022 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -426,7 +426,7 @@ func (cli *CLI) promptResetMachine() error { Negative("No"). Value(&confirm), ), - ) + ).WithAccessible(true) if err := form.Run(); err != nil { return fmt.Errorf("prompt user to confirm: %w", err) } diff --git a/internal/cli/prompt.go b/internal/cli/prompt.go index 2d039532..6b29558b 100644 --- a/internal/cli/prompt.go +++ b/internal/cli/prompt.go @@ -14,7 +14,7 @@ func Confirm() (bool, error) { Negative("No"). Value(&confirmed), ), - ) + ).WithAccessible(true) if err := form.Run(); err != nil { return false, err }