Package nz.org.riskscape.cli
Interface AnsiHelper
- All Known Implementing Classes:
AnsiPrintStream
public interface AnsiHelper
Helper interface that can make your code more succinct when producing Ansi text for display
-
Method Summary
Modifier and TypeMethodDescriptiondefault CommandLine.Help.Ansi.Text
applyMarkup
(String markupText) default CommandLine.Help.Ansi.Text
applyStyles
(String plainText, List<CommandLine.Help.Ansi.IStyle> styles) default CommandLine.Help.Ansi.Text
applyStyles
(String plainText, CommandLine.Help.Ansi.IStyle... styles) getAnsi()
-
Method Details
-
getAnsi
CommandLine.Help.Ansi getAnsi()- Returns:
- the ansi object we are wrapping
-
applyStyles
default CommandLine.Help.Ansi.Text applyStyles(String plainText, List<CommandLine.Help.Ansi.IStyle> styles) -
applyStyles
default CommandLine.Help.Ansi.Text applyStyles(String plainText, CommandLine.Help.Ansi.IStyle... styles) -
applyMarkup
-