func renderCommand()

in internal/engine/execution.go [54:69]


func renderCommand(blockContent string) (shells.CommandOutput, error) {
	escapedCommand := blockContent
	if !patterns.MultilineQuotedStringCommand.MatchString(blockContent) {
		escapedCommand = strings.ReplaceAll(blockContent, "\\\n", "\\\\\n")
	}
	renderedCommand, err := shells.ExecuteBashCommand(
		"echo -e \""+escapedCommand+"\"",
		shells.BashCommandConfiguration{
			EnvironmentVariables: map[string]string{},
			InteractiveCommand:   false,
			WriteToHistory:       false,
			InheritEnvironment:   true,
		},
	)
	return renderedCommand, err
}