INNER CODE UNIT · Go
renderColorfulHelp
darksworm/argonaut · cmd/app/main.go:58
func renderColorfulHelp(fs *flag.FlagSet) string {
var help strings.Builder
// Title with styling
titleStyle := lipgloss.NewStyle().Foreground(helpTitleColor).Bold(true)
help.WriteString(titleStyle.Render("argonaut"))
help.WriteString(" - Interactive terminal UI for Argo CD\n\n")
// Usage section
sectionStyle := lipgloss.NewStyle().Foreground(helpSectionColor).Bold(true)
help.WriteString(sectionStyle.Render("USAGE"))
help.WriteString("\n ")
help.WriteString(lipgloss.NewStyle().Foreground(helpTextColor).Render("argonaut"))
help.WriteString(lipgloss.NewStyle().Foreground(helpDimColor).Render(" [options]"))
help.WriteString("\n\n")
// Options section
help.WriteString(sectionStyle.Render("OPTIONS"))