1 |
|
2 | 'use strict'
|
3 |
|
4 | const ora = require('ora')
|
5 | const depCheck = require('../src/dependency-check')
|
6 |
|
7 | const EPILOG = `
|
8 | Supports options forwarding with '--' for more info check https://github.com/maxogden/dependency-check#cli-usage
|
9 | `
|
10 |
|
11 | module.exports = {
|
12 | command: 'dependency-check',
|
13 | aliases: ['dep-check', 'dep'],
|
14 | desc: 'Run `dependency-check` cli with aegir defaults.',
|
15 | builder: (yargs) => {
|
16 | yargs
|
17 | .epilog(EPILOG)
|
18 | .example('aegir dependency-check -- --unused', 'To check unused packages in your repo.')
|
19 | },
|
20 | async handler (argv) {
|
21 | const spinner = ora('Checking dependencies').start()
|
22 | await depCheck(argv)
|
23 | spinner.succeed()
|
24 | }
|
25 | }
|