Passed
Push — develop ( bca4a5...80ffe5 )
by Bjarn
01:32 queued 11s
created

memcacheCommand.ts ➔ memcacheCommand   A

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
import commander from 'commander'
2
import MemcacheController from '../controllers/memcacheController'
3
4
export default function memcacheCommand(program: typeof commander) {
5
    return program
6
        .command('memcache <status>')
7
        .description('Enable or disable Memcache. Use \'on\' or \'off\'.')
8
        .action((status: string) => {
9
            (new MemcacheController()).execute(status).catch(err => console.log(err.message))
10
        })
11
}