Skip to content

Add escape support to templates for custom commands #5893

Description

@JazzXP

Is your feature request related to a problem? Please describe.

sometimes in a template | quote isn't enough, for example
command: 'git commit --message "{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message }}"' will break if .Form.Message contains "

Describe the solution you'd like

like we have | quote would be nice to have | escape or something similar (maybe a replace?) so we can escape quotes

Describe alternatives you've considered

Alternatively, something like sprig could be useful

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions