Skip to content

Commit

Permalink
fix(migrator): fix help message
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jul 16, 2020
1 parent a8d918b commit 27684d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/console/migrate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { underline } = require('chalk');
const { underline, magenta } = require('chalk');

function migrateConsole(args) {
// Display help message if user didn't input any arguments
Expand All @@ -14,7 +14,7 @@ function migrateConsole(args) {
if (!migrators[type]) {
let help = '';

help += `${type.magenta} migrator plugin is not installed.\n\n`;
help += `${magenta(type)} migrator plugin is not installed.\n\n`;
help += 'Installed migrator plugins:\n';
help += ` ${Object.keys(migrators).join(', ')}\n\n`;
help += `For more help, you can check the online docs: ${underline('https://hexo.io/')}`;
Expand Down

0 comments on commit 27684d0

Please sign in to comment.