import child_process = require ( "child_process" ) ; import SFPLogger from "../logger/SFPLogger" ; export default class DeleteScratchOrgImpl { public constructor ( private target_org , private devhub ) { } public async exec ( command ) { let result = child_process . execSync ( command , { encoding : "utf8" } ) ; SFPLogger . log ( result ) ; } public async buildExecCommand ( ) { let command = `sfdx force:org:delete -u  ${ this . target_org } -v ${ this . devhub } -p` ; return command ; } }