import { SFDXCommand } from "../command/SFDXCommand" ; import { Logger , LoggerLevel } from "../logger/SFPLogger" ; export default class SFDMURunImpl extends SFDXCommand { public constructor ( working_directory , target_org , private targetOrgDomain , private packageDirectory , logger , logLevel ) { super ( target_org , working_directory , logger , logLevel ) ; } getSFDXCommand ( ) { return "sfdx sfdmu:run" ; } getCommandName ( ) { return "sfdmu:run" ; } getGeneratedParams ( ) { let command = `--path ${ this . packageDirectory } -s csvfile -u ${ this . target_org } --noprompt --canmodify ${ this . targetOrgDomain }` ; if ( this . logLevel ) command += ` --loglevel ${ LoggerLevel [ this . logLevel ] }` ; return command ; } }