dev.jbang.util.ConsoleOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbang-cli Show documentation
Show all versions of jbang-cli Show documentation
JBang Command Line Interface
The newest version!
package dev.jbang.util;
import picocli.CommandLine;
public class ConsoleOutput {
public static String yellow(String text) {
return CommandLine.Help.Ansi.AUTO.new Text("@|fg(yellow) " + text + "|@").toString();
}
public static String cyan(String text) {
return CommandLine.Help.Ansi.AUTO.new Text("@|fg(cyan) " + text + "|@").toString();
}
public static String magenta(String text) {
return CommandLine.Help.Ansi.AUTO.new Text("@|fg(magenta) " + text + "|@").toString();
}
public static String faint(String text) {
return CommandLine.Help.Ansi.AUTO.new Text("@|faint " + text + "|@").toString();
}
public static String bold(String text) {
return CommandLine.Help.Ansi.AUTO.new Text("@|bold " + text + "|@").toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy