ConsoleText

public struct ConsoleText: RandomAccessCollection, ExpressibleByArrayLiteral, ExpressibleByStringLiteral, CustomStringConvertible

A collection of ConsoleTextFragments. Represents stylized text that can be outputted to a Console.

let text: ConsoleText = "Hello, " + "world".consoleText(color: .green)

See Console.output(_:newLine:) for more information.