Escape backslashes in TOML outputs

This commit is contained in:
Eric Yeh
2025-10-10 06:09:38 +08:00
parent 89f4b0b38a
commit 7c4c1edd85

View File

@@ -91,6 +91,7 @@ generate_commands() {
case $ext in
toml)
body=$(printf '%s\n' "$body" | sed 's/\\/\\\\/g')
{ echo "description = \"$description\""; echo; echo "prompt = \"\"\""; echo "$body"; echo "\"\"\""; } > "$output_dir/speckit.$name.$ext" ;;
md)
echo "$body" > "$output_dir/speckit.$name.$ext" ;;