File: print.go

package info (click to toggle)
tea-cli 0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: makefile: 116; sh: 17
file content (20 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package interact

import (
	"fmt"

	"code.gitea.io/tea/modules/theme"

	"github.com/charmbracelet/lipgloss"
)

// printTitleAndContent prints a title and content with the gitea theme
func printTitleAndContent(title, content string) {
	style := lipgloss.NewStyle().
		Foreground(theme.GetTheme().Blurred.Title.GetForeground()).Bold(true).
		Padding(0, 1)
	fmt.Print(style.Render(title), content+"\n")
}