Files
pmg/internal/ui/banner.go
T
Abhisek DattaandGitHub c0122898ca feat: Add support for setup-info command (#108)
* feat: Add support for setup-info command

* fix: Code review fixes

* fix: Add event log info
2026-01-11 19:25:13 +05:30

28 lines
627 B
Go

package ui
import (
"fmt"
"github.com/fatih/color"
)
var (
brandPinkRed = color.RGB(219, 39, 119).Add(color.Bold).SprintFunc() // #DB2777 Brand Pink
whiteDim = color.New(color.Faint).SprintFunc()
)
func GeneratePMGBanner(version, commit string) string {
var pmgASCIIText = `
█▀█ █▀▄▀█ █▀▀ From SafeDep
█▀▀ █░▀░█ █▄█` // It should end here no \n
if len(commit) >= 6 {
commit = commit[:6]
}
return fmt.Sprintf("%s %s: %s %s: %s\n\n", brandPinkRed(pmgASCIIText),
whiteDim("version"), Colors.Bold(version),
whiteDim("commit"), Colors.Bold(commit),
)
}