| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import commander from 'commander' |
||
| 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 | } |