posh/pkg/prompt/flair/flair.go
Kevin Franklin Kim 8929c62a64
feat: add env command (#45)
* feat: add env command

* fix: add pad

* fix: hostname separator

* feat: remove enforced $H

* refactor: rename pkg to internal

* revert: hostname separation
2023-11-23 12:19:19 +01:00

22 lines
444 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)),
).
Render(); err != nil {
return err
}
pterm.FgGray.Println("Use `exit` or `Ctrl-D` to exit this program.")
pterm.Println()
return nil
}