diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-14 17:27:31 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-14 17:27:31 +0200 |
| commit | bf5a1f083bd0db957f2399ec36e641112dce699e (patch) | |
| tree | fece940c8807f214f80f77ef146a4eebfe45de83 | |
| parent | ac0fdc087943f0d998cf072a9ff6d0bf49903d8d (diff) | |
expand this for later
| -rw-r--r-- | menu/confirm.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/menu/confirm.go b/menu/confirm.go index b9063c9..af6c30d 100644 --- a/menu/confirm.go +++ b/menu/confirm.go @@ -29,7 +29,12 @@ var ( ) func Confirm(r io.Reader, source *model.Source, target model.Target, args ...string) bool { - banner := ConfirmStyle.Render(PromptStyle.Render("[Y/n]"), Banner(source, target, args...), "? ") + parts := []string{ + ConfirmStyle.Render(PromptStyle.Render("[Y/n]")), + Banner(source, target, args...), + "? ", + } + banner := BannerStyle.Render(parts...) fmt.Print(banner) scanner := bufio.NewScanner(r) scanner.Split(bufio.ScanRunes) |
