on main help sign in
fix(prompts): unindent heredoc
a1b19ebKieran Klukas
internal/agent/tools/bash.md.tpl+7โˆ’8
@@ -91,7 +91,7 @@ When user asks to create git commit:
91
91
925. Create commit{{ if or (eq .Attribution.TrailerStyle "assisted-by") (eq .Attribution.TrailerStyle "co-authored-by")}} with attribution{{ end }} using HEREDOC:
925. Create commit{{ if or (eq .Attribution.TrailerStyle "assisted-by") (eq .Attribution.TrailerStyle "co-authored-by")}} with attribution{{ end }} using HEREDOC:
93 git commit -m "$(cat <<'EOF'
93 git commit -m "$(cat <<'EOF'
94โˆ’ Commit message here.
94+Commit message here.
95
95
96{{ if .Attribution.GeneratedWith }}
96{{ if .Attribution.GeneratedWith }}
97๐Ÿ’˜ Generated with Crush
97๐Ÿ’˜ Generated with Crush
@@ -103,9 +103,8 @@ Assisted-by: Crush:{{ .ModelID }}
103
103
104Co-Authored-By: Crush <crush@charm.land>
104Co-Authored-By: Crush <crush@charm.land>
105{{ end }}
105{{ end }}
106โˆ’
107โˆ’ EOF
106+EOF
108โˆ’ )"
107+)"
109
108
1106. If pre-commit hook fails, retry ONCE. If fails again, hook preventing commit. If succeeds but files modified, MUST amend.
1096. If pre-commit hook fails, retry ONCE. If fails again, hook preventing commit. If succeeds but files modified, MUST amend.
111
110
@@ -153,14 +152,14 @@ When user asks you to create or update a PR:
1537. Create PR with gh pr create using HEREDOC:
1527. Create PR with gh pr create using HEREDOC:
154 gh pr create --title "title" --body "$(cat <<'EOF'
153 gh pr create --title "title" --body "$(cat <<'EOF'
155
154
156โˆ’ <summary>
155+<summary>
157
156
158{{ if .Attribution.GeneratedWith -}}
157{{ if .Attribution.GeneratedWith -}}
159โˆ’ ๐Ÿ’˜ Generated with Crush
158+๐Ÿ’˜ Generated with Crush
160{{- end }}
159{{- end }}
161
160
162โˆ’ EOF
161+EOF
163โˆ’ )"
162+)"
164
163
165Important:
164Important:
166
165