feature(cloudcmd) showUpdateInfo: rm rendy

This commit is contained in:
coderaiser 2018-09-25 19:01:47 +03:00
parent da5bf3ce40
commit abc6f7b22e

View file

@ -285,15 +285,10 @@ function showUpdateInfo(data) {
return;
const chalk = require('chalk');
const rendy = require('rendy');
const latest = rendy('update available: {{ latest }}', {
latest: chalk.green.bold('v' + version),
});
const current = chalk.dim(rendy('(current: v{{ current }})', {
current: Info.version
}));
const latestVersion = chalk.green.bold('v' + version);
const latest = `update available: ${latestVersion}`;
const current = chalk.dim(`(current: v${Info.version})`);
console.log('%s %s', latest, current);
}