zcatalyst-cli
Version:
Command Line Tool for CATALYST
13 lines (12 loc) • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CHAR = void 0;
const ansi_colors_1 = require("ansi-colors");
const env_1 = require("./env");
const isSupported = !env_1.isWindows || process.env.CI || process.env.TERM === 'xterm-256color';
exports.CHAR = {
success: isSupported ? ansi_colors_1.bold.green('✔') : ansi_colors_1.bold.green('√'),
warning: isSupported ? ansi_colors_1.bold.yellow('⚠') : ansi_colors_1.bold.yellow('‼'),
info: isSupported ? ansi_colors_1.bold.cyan('ℹ') : ansi_colors_1.bold.cyan('i'),
error: isSupported ? ansi_colors_1.bold.red('✖') : ansi_colors_1.bold.red('×')
};