🎨 CLI UX enhancements

This commit is contained in:
Ettore Di Giacinto
2022-04-22 11:41:02 +02:00
parent 6674abb256
commit 388a3e4471
3 changed files with 31 additions and 41 deletions

View File

@@ -334,7 +334,7 @@ func (l *Logger) Spinner() {
}
func (l *Logger) Screen(text string) {
pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgLightBlue)).WithMargin(2).Println(text)
l.Infof(":::> %s", text)
}
func (l *Logger) SpinnerText(suffix, prefix string) {