mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
22 lines
515 B
Go
22 lines
515 B
Go
package flair
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/pterm/pterm"
|
|
"github.com/pterm/pterm/putils"
|
|
)
|
|
|
|
func DefaultFlair(title string) error {
|
|
pterm.FgGray.Println()
|
|
if err := pterm.DefaultBigText.WithLetters(
|
|
putils.LettersFromStringWithStyle(strings.ToUpper(title), pterm.NewStyle(pterm.FgCyan)),
|
|
putils.LettersFromStringWithStyle("$H", pterm.NewStyle(pterm.FgGreen))).
|
|
Render(); err != nil {
|
|
return err
|
|
}
|
|
pterm.FgGray.Println("Use `exit` or `Ctrl-D` to exit this program.")
|
|
pterm.Println()
|
|
return nil
|
|
}
|