import { Command } from 'commander' ; import { build , IBuildCommandOption } from '../commands' ; export const buildCli = ( program ) => { program . command ( 'build [project]' ) . usage ( '[options]' ) . option ( '--no-self' , 'build without target project' ) . option ( '-t, --dept' , 'build target project with project’s dependent' ) . option ( '--no-deps' , 'build target project without project’s dependences' ) . option ( '--only-self' , 'build target project with nothing' ) . option ( '-a, --all' , 'build target project with project’s dependences and dependent' ) . option ( '--content-hash' , 'build target project use content hash cache' ) . option ( '--git-hash' , 'build target project use git hash cache' ) . description ( 'build target project' ) . action ( async ( targetProjectName , option ) => { await build ( targetProjectName , option ) ; } ) ; } ;