mirror of
https://github.com/github/spec-kit.git
synced 2026-02-02 14:03:36 +00:00
Merge branch 'localden/checkpoints' of https://github.com/github/spec-kit into localden/checkpoints
This commit is contained in:
@@ -79,7 +79,8 @@ generate_commands() {
|
|||||||
# Remove the scripts: and agent_scripts: sections from frontmatter while preserving YAML structure
|
# Remove the scripts: and agent_scripts: sections from frontmatter while preserving YAML structure
|
||||||
body=$(printf '%s\n' "$body" | awk '
|
body=$(printf '%s\n' "$body" | awk '
|
||||||
/^---$/ { print; if (++dash_count == 1) in_frontmatter=1; else in_frontmatter=0; next }
|
/^---$/ { print; if (++dash_count == 1) in_frontmatter=1; else in_frontmatter=0; next }
|
||||||
in_frontmatter && /^(scripts|agent_scripts):$/ { skip_scripts=1; next }
|
in_frontmatter && /^scripts:$/ { skip_scripts=1; next }
|
||||||
|
in_frontmatter && /^agent_scripts:$/ { skip_scripts=1; next }
|
||||||
in_frontmatter && /^[a-zA-Z].*:/ && skip_scripts { skip_scripts=0 }
|
in_frontmatter && /^[a-zA-Z].*:/ && skip_scripts { skip_scripts=0 }
|
||||||
in_frontmatter && skip_scripts && /^[[:space:]]/ { next }
|
in_frontmatter && skip_scripts && /^[[:space:]]/ { next }
|
||||||
{ print }
|
{ print }
|
||||||
|
|||||||
Reference in New Issue
Block a user