Skip to content

Commit

Permalink
feat(cli): use getDescription in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Dec 24, 2018
1 parent 91d7fb0 commit d5d22f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/Lint/index.js
Expand Up @@ -2,6 +2,7 @@ const { h, render, Component, Color } = require('ink');
const loadMdFiles = require('../helper/file');
const lint = require('./lint');
const string = require('../helper/string');
const { getDescription } = require('../../lib');

/**
* Lint 组件
Expand Down Expand Up @@ -70,7 +71,7 @@ module.exports = class Lint extends Component {
' ',
h('span', {}, h(Color, { grey: true }, string.rightPad(`${type}`, 24))),
' ',
h(Color, props, text),
h(Color, props, `${getDescription(type).message} ${text}`),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "lint-md",
"version": "0.0.7",
"version": "0.0.8",
"description": "Cli tool to lint your markdown file for Chinese.",
"main": "lib/index.js",
"bin": {
Expand Down

0 comments on commit d5d22f3

Please sign in to comment.