summaryrefslogtreecommitdiff
path: root/menu/banner.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-14 17:27:13 +0200
committerewy <ewy0@protonmail.com>2026-04-14 17:27:13 +0200
commitac0fdc087943f0d998cf072a9ff6d0bf49903d8d (patch)
tree4a4e215c476358f8f52e2e5bea08bf3956d1f9ed /menu/banner.go
parent8ae1dada4e3260ba8087943862ea824b07bc641e (diff)
add dry run reminder to dry output
Diffstat (limited to 'menu/banner.go')
-rw-r--r--menu/banner.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/menu/banner.go b/menu/banner.go
index 5a4f561..53c8f16 100644
--- a/menu/banner.go
+++ b/menu/banner.go
@@ -3,6 +3,7 @@ package menu
import (
"github.com/charmbracelet/lipgloss"
"os/exec"
+ "pik/flags"
"pik/menu/style"
"pik/model"
"pik/paths"
@@ -38,10 +39,17 @@ var (
BannerTerminatorStyle = style.New(func() lipgloss.Style {
return lipgloss.NewStyle().Faint(true).Foreground(BannerTerminatorColor)
})
+ BannerDryColor = lipgloss.Color("1")
+ BannerDryStyle = style.New(func() lipgloss.Style {
+ return lipgloss.NewStyle().Foreground(BannerDryColor).Bold(true).MarginRight(1)
+ })
)
func Banner(source *model.Source, target model.Target, args ...string) string {
var parts, argParts []string
+ if *flags.Dry {
+ parts = append(parts, BannerDryStyle.Render("DRY"))
+ }
parts = append(parts, BannerPromptStyle.Render("> "))
parts = append(parts, BannerSelfStyle.Render("pik"))
parts = append(parts, BannerSourceLabelStyle.Render(source.Label()))