mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-07 07:53:08 +00:00
35 lines
822 B
JavaScript
35 lines
822 B
JavaScript
|
|
import boxen from 'boxen';
|
|||
|
|
import chalk from 'chalk';
|
|||
|
|
|
|||
|
|
export function showSuccessMessage(message) {
|
|||
|
|
return boxen(chalk.green(message), {
|
|||
|
|
padding: 1,
|
|||
|
|
margin: 1,
|
|||
|
|
borderStyle: 'round',
|
|||
|
|
borderColor: 'green',
|
|||
|
|
title: '✅ SUCCESS',
|
|||
|
|
titleAlignment: 'center'
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
export function showErrorMessage(message) {
|
|||
|
|
return boxen(chalk.red(message), {
|
|||
|
|
padding: 1,
|
|||
|
|
margin: 1,
|
|||
|
|
borderStyle: 'round',
|
|||
|
|
borderColor: 'red',
|
|||
|
|
title: '❌ ERROR',
|
|||
|
|
titleAlignment: 'center'
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
export function showInfoMessage(message) {
|
|||
|
|
return boxen(chalk.cyan(message), {
|
|||
|
|
padding: 1,
|
|||
|
|
margin: 1,
|
|||
|
|
borderStyle: 'round',
|
|||
|
|
borderColor: 'cyan',
|
|||
|
|
title: 'ℹ️ INFO',
|
|||
|
|
titleAlignment: 'center'
|
|||
|
|
});
|
|||
|
|
}
|