import { Command } from 'commander' ; import { clear , IClearCommandOption } from '../commands' ; export const clearCli = ( program ) => { program . command ( 'clear [projects...]' ) . usage ( '[options]' ) . option ( '--remove-dirs [dirs...]' , 'remove dirs, default is node_modules' ) . description ( 'clear project dirs' ) . action ( async ( targetProjectNames , option ) => { await clear ( targetProjectNames , option ) ; } ) ; } ;