All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jbang.util.ConsoleOutput Maven / Gradle / Ivy

There is a newer version: 0.121.0
Show 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