clicolorer

package
v0.0.0-...-b097151 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 1 Imported by: 0

README

problem statement

lib for adding color to CLI text

features

  • cross platform terminal support
  • API exposed via interface
  • fake implementation to allow faking interactions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliColorer

type CliColorer interface {
	// silently disables coloring
	Disable()

	// attention colors
	Attention(
		s string,
	) string

	// errors colors
	Error(
		s string,
	) string

	// info colors
	Info(
		s string,
	) string

	// success colors
	Success(s string) string
}

func New

func New() CliColorer

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL