@apistudio/apim-cli
Version:
CLI for API Management Products
33 lines (24 loc) • 718 B
text/typescript
/**
* Copyright Super iPaaS Integration LLC, an IBM Company 2024
*/
import chalk from 'chalk';
const showError = (message: string) => {
const errorMessage = chalk.red(message);
console.log(errorMessage);
};
const showWarning = (message: string) => {
const warningMessage = chalk.yellow(message);
console.log(warningMessage);
};
const showSuccess = (message: string) => {
const successMessage = chalk.green(message);
console.log(successMessage);
};
const showInfo = (message: string) => {
const infoMessage = chalk.blueBright(message);
console.log(infoMessage);
};
const showMessage = (message: string) => {
console.log(message);
};
export {showError, showWarning, showSuccess, showInfo, showMessage};