MCPcopy
hub / github.com/yeoman/yo / updateCheck

Function updateCheck

lib/cli.js:51–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51function updateCheck() {
52 const notifier = updateNotifier({pkg});
53 const message = [];
54
55 if (notifier.update) {
56 message.push(
57 'Update available: ' + chalk.green.bold(notifier.update.latest) + chalk.gray(' (current: ' + notifier.update.current + ')'),
58 'Run ' + chalk.magenta('npm install -g ' + pkg.name) + ' to update.',
59 );
60 console.log(yosay(message.join(' '), {maxLength: stringLength(message[0])}));
61 }
62}
63
64async function pre() {
65 // Debugging helper

Callers 1

cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…