diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-14 17:27:13 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-14 17:27:13 +0200 |
| commit | ac0fdc087943f0d998cf072a9ff6d0bf49903d8d (patch) | |
| tree | 4a4e215c476358f8f52e2e5bea08bf3956d1f9ed | |
| parent | 8ae1dada4e3260ba8087943862ea824b07bc641e (diff) | |
add dry run reminder to dry output
| -rw-r--r-- | menu/banner.go | 8 |
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())) |
