import "github.com/ubclaunchpad/inertia/cmd/core/utils/out"
Package out provides out utilities for the Inertia CLI
decor.go doc.go format.go print.go
const ( // EnvEmojiToggle is the environment variable used to disable or enable emoji EnvEmojiToggle = "INERTIA_EMOJI" // EnvColorToggle is the environment variable used to disable or enable colors EnvColorToggle = "INERTIA_COLOR" )
func Fatal(args ...interface{})
Fatal is a wrapper around fmt.Print that exits with status 1
Fatalf is a wrapper around out.Printf that exits with status 1
FormatRemoteDetails prints the given remote configuration
func FormatStatus(remoteName string, s *api.DeploymentStatusWithVersions) string
FormatStatus prints the given deployment status
Fprintf wraps formatters
func Print(args ...interface{})
Print wraps formatters
Printf wraps formatters
func Println(args ...interface{})
Println wraps formatters
Sprintf wraps formatters
WithColor checks if colouring should be enabled
WithEmoji checks if emoji should be enabled
ColorTraits denotes colour customizations
const ( // RD = red RD ColorTraits = ColorTraits(color.FgRed) // CY = cyan CY ColorTraits = ColorTraits(color.FgCyan) // GR = green GR ColorTraits = ColorTraits(color.FgGreen) // YE = yellow YE ColorTraits = ColorTraits(color.FgYellow) // BO = bold BO ColorTraits = ColorTraits(color.Bold) // UL = underline UL ColorTraits = ColorTraits(color.Underline) )
type Colored struct {
// contains filtered or unexported fields
}
Colored converts a given string to the given colour
func C(msg string, traits ...ColorTraits) *Colored
C creates a new colourable
String lets us provide a custom stringifier
With indicates that the C should Printf with given args
type Colorer struct {
// contains filtered or unexported fields
}
Colorer wraps fatih/color.Color
func NewColorer(traits ...ColorTraits) *Colorer
NewColorer instantiates a new Colorer
S is a shortcut for Sprint
Sf is a shortcut for Sprintf
Package out imports 7 packages (graph) and is imported by 13 packages. Updated 2021-01-28. Refresh now. Tools for package owners.