import { CodeBuilder } from '@/application/Context/State/Code/Generation/CodeBuilder' ; export class BatchBuilder extends CodeBuilder { protected getCommentDelimiter ( ) { return '::' ; } protected writeStandardOut ( text ) { return `echo ${ escapeForEcho ( text ) }` ; } } function escapeForEcho ( text ) { return text . replace ( /&/g , '^&' ) . replace ( /%/g , '%%' ) ; }