describe backends

This commit is contained in:
2021-04-17 12:02:00 +02:00
parent b1054f3512
commit b314912821
3 changed files with 35 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ package colors
import (
"fmt"
"strings"
"github.com/fatih/color"
)
@@ -20,3 +21,9 @@ func PrimaryPrint(msg string, args ...interface{}) {
func DisableColors(state bool) {
color.NoColor = state
}
func PrintDescription(left string, right string) {
right = strings.Trim(right, "\n")
right = strings.Trim(right, "\t")
Body.Printf("%s\t%s\n", Secondary.Sprint(left), right)
}