import { Command , CommanderStatic } from 'commander' ; import { AbstractCommand } from './abstract.command' ; import { Input } from './command.input' ; export class UpdateCommand extends AbstractCommand { public load ( program ) { program . command ( 'update' ) . alias ( 'u' ) . description ( 'Update Nest dependencies.' ) . option ( '-f, --force' , 'Remove and re-install dependencies (instead of update).' ) . option ( '-t, --tag <tag>' , 'Upgrade to tagged packages (latest | beta | rc | next tag).' ) . action ( async ( command ) => { const options = [ ] ; options . push ( { name : 'force' , value : ! ! command . force } ) ; options . push ( { name : 'tag' , value : command . tag } ) ; await this . action . handle ( [ ] , options ) ; } ) ; } }