Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cheatsheet.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ Sometimes it's nice to include a snippet from another file. For example, we dyna

`[%CFEngine_include_snippet(cf-promises.help, [\s]*--[a-z], ^$)%]`

[%CFEngine_include_snippet(cf-promises.help, [\s]\*--[a-z], ^$)%]
[%CFEngine_include_snippet(cf-promises.help, [\s]*--[a-z], ^$)%]

---

Expand Down
1 change: 1 addition & 0 deletions generator/_regenerate_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ done
) | while read agent
do
dumpHelp ${agent} > ${OUTDIR}/${agent}.help
echo "Dumped help output for ${agent} to ${OUTDIR}/${agent}.help"
done

# Here we execute and store some command output so that examples can always be up to date.
Expand Down
4 changes: 4 additions & 0 deletions generator/_scripts/cfdoc_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,10 @@ def include_snippet(parameters, config):
markdown_lines.append(line)

if not len(markdown_lines):
print("Did not find expected content in %s" % filename)
print("Full content of file:")
for line in lines:
print(line, end="")
raise Exception("Snippet not found: %s" % begin.pattern)
return list()

Expand Down