mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-02 08:40:39 +00:00
describe backends
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user