Passed
Push — develop ( 82d8b5...58c45d )
by Bjarn
01:38 queued 11s
created

src/commands/linkCommand.ts

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 9
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
c 0
b 0
f 0
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
import commander from 'commander'
2
import SitesController from '../controllers/sitesController'
3
4
export default (program: typeof commander): commander.Command => program
5
    .command('link')
6
    .description('Create a new Nginx vhost config for your current project.')
7
    .action(() => {
8
        (new SitesController()).executeLink().catch(err => console.log(err.message))
9
    })