Skip to content

Commit

Permalink
feat(formatter): use 'crc' as command
Browse files Browse the repository at this point in the history
Users can now generate reports with the `crc` command, e.g.,

crc 'lib/crc/*.js'

Instead of

eslint-plugin-crc 'lib/crc/*.js'

#44,#187
  • Loading branch information
gregswindle committed Feb 18, 2018
1 parent 32769a9 commit 0807583
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const copyAssets = async (destinationDirectory) => {

/**
* @private
* @ignore
*/

const msg = {
Expand All @@ -42,6 +43,7 @@ const msg = {

"usage": `
Usage
$ crc input [options] [info]
$ eslint-plugin-crc input [options] [info]
Input
Expand All @@ -61,7 +63,7 @@ const msg = {
✅ Generated a CRC Model report to
/Users/you/work/repo/reports/crc-model-report.md.
$ eslint-plugin-crc 'lib/**/*.js' -o='./tests/analysis'
$ crc 'lib/**/*.js' -o='./tests/analysis'
✅ Generated a CRC Model report to
/Users/you/work/repo/tests/analysis/crc-model-report.md.
Expand Down

0 comments on commit 0807583

Please sign in to comment.