com.bilalfazlani.rainbowcli

Type members

Classlikes

case class ColorContext(enable: Boolean)

Extensions

Extensions

extension (s: String)
def black(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI black

Colorize the given string foreground to ANSI black

def blue(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI blue

Colorize the given string foreground to ANSI blue

def bold(using colorContext: ColorContext): String

Make the given string bold

Make the given string bold

def cyan(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI cyan

Colorize the given string foreground to ANSI cyan

def green(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI green

Colorize the given string foreground to ANSI green

def invisible(using colorContext: ColorContext): String

Make the given string invisible using ANSI color codes

Make the given string invisible using ANSI color codes

def magenta(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI magenta

Colorize the given string foreground to ANSI magenta

def onBlack(using colorContext: ColorContext): String

Colorize the given string background to ANSI black

Colorize the given string background to ANSI black

def onBlue(using colorContext: ColorContext): String

Colorize the given string background to ANSI blue

Colorize the given string background to ANSI blue

def onCyan(using colorContext: ColorContext): String

Colorize the given string background to ANSI cyan

Colorize the given string background to ANSI cyan

def onGreen(using colorContext: ColorContext): String

Colorize the given string background to ANSI green

Colorize the given string background to ANSI green

def onMagenta(using colorContext: ColorContext): String

Colorize the given string background to ANSI magenta

Colorize the given string background to ANSI magenta

def onRed(using colorContext: ColorContext): String

Colorize the given string background to ANSI red

Colorize the given string background to ANSI red

def onWhite(using colorContext: ColorContext): String

Colorize the given string background to ANSI white

Colorize the given string background to ANSI white

def onYellow(using colorContext: ColorContext): String

Colorize the given string background to ANSI yellow

Colorize the given string background to ANSI yellow

def red(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI red

Colorize the given string foreground to ANSI red

def reversed(using colorContext: ColorContext): String

Reverse the ANSI colors of the given string

Reverse the ANSI colors of the given string

def underlined(using colorContext: ColorContext): String

Underline the given string

Underline the given string

def white(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI white

Colorize the given string foreground to ANSI white

def yellow(using colorContext: ColorContext): String

Colorize the given string foreground to ANSI yellow

Colorize the given string foreground to ANSI yellow