Instance Method
output(_:style:newLine:)
Outputs a
String to the Console with the specified ConsoleStyle style.func output(_ string: String, style: ConsoleStyle, newLine: Bool = true)
Parameters
stringStringto print.styleConsoleStyleto use for thestring.newLineIf
true, the next output will be on a new line.
Discussion
console.print("Hello, world!", style: .plain)