Package software.amazon.smithy.cli
Interface CliPrinter
-
- All Known Implementing Classes:
CliPrinter.ConsumerPrinter
public interface CliPrinterHandles text output of the CLI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCliPrinter.ConsumerPrinterCliPrinter that calls a Consumer that accepts a CharSequence.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidprintln(java.lang.String text)Prints text to the writer and appends a new line.default java.lang.Stringstyle(java.lang.String text, Style... styles)Styles the given text using ANSI escape sequences.
-
-
-
Method Detail
-
println
void println(java.lang.String text)
Prints text to the writer and appends a new line.- Parameters:
text- Text to print.
-
style
default java.lang.String style(java.lang.String text, Style... styles)Styles the given text using ANSI escape sequences.It is strongly recommended to use the constants defined in
Styleto provide valid combinations of ANSI color escape codes.- Parameters:
text- Text to style.styles- ANSI escape codes.- Returns:
- Returns the styled text.
-
-