clikt / com.github.ajalt.clikt.core / CliktCommand / echo

echo

protected fun echo(message: Any?, trailingNewline: Boolean = true, err: Boolean = false): Unit

Print the message to the screen.

This is similar to print or println, but converts newlines to the system line separator.

This is equivalent to calling TermUi.echo with the console from the current context.

Parameters

message - The message to print.

trailingNewline - If true, behave like println, otherwise behave like print

err - If true, print to stderr instead of stdout