import { SFDXCommand } from "../command/SFDXCommand" ; export default class CreateScratchOrgImpl extends SFDXCommand { public constructor ( working_directory , private config_file_path , private devhub , private alias , private daysToMaintain , private adminEmail ? ) { super ( devhub , working_directory ) ; } public async exec ( quiet ? ) { let result = await super . exec ( quiet , 360000 ) ; return result ; } getCommandName ( ) { return "CreateScratchOrg" ; } getSFDXCommand ( ) { return `sfdx force:org:create` ; } getGeneratedParams ( ) { let command = `-v ${ this . devhub } -s -f ${ this . config_file_path }  -a ${ this . alias } -d ${ this . daysToMaintain }` ; if ( this . adminEmail ) command += ` adminEmail=${ this . adminEmail }` ; return command ; } }