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