| Total Complexity | 1 | 
| Complexity/F | 1 | 
| Lines of Code | 11 | 
| Function Count | 1 | 
| Duplicated Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import commander from 'commander'  | 
            ||
| 2 | import ServiceController from '../controllers/serviceController'  | 
            ||
| 3 | |||
| 4 | export default function stopCommand(program: typeof commander) { | 
            ||
| 5 | return program  | 
            ||
| 6 |         .command('stop [service]') | 
            ||
| 7 |         .description('Stop all or a specific service.') | 
            ||
| 8 |         .action((service: string | undefined) => { | 
            ||
| 9 | (new ServiceController()).executeStop(service).catch(err => console.log(err.message))  | 
            ||
| 10 | })  | 
            ||
| 11 | }  |