Package software.amazon.smithy.cli
Interface CliPrinter
- All Known Implementing Classes:
CliPrinter.ConsumerPrinter
public interface CliPrinter
Handles text output of the CLI.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
CliPrinter that calls a Consumer that accepts a CharSequence. -
Method Summary
-
Method Details
-
println
Prints text to the writer and appends a new line.- Parameters:
text
- Text to print.
-
style
Styles the given text using ANSI escape sequences.It is strongly recommended to use the constants defined in
Style
to provide valid combinations of ANSI color escape codes.- Parameters:
text
- Text to style.styles
- ANSI escape codes.- Returns:
- Returns the styled text.
-