Skip to content

Commit 8b37b3e

Browse files
authored
DOCSP-23862: Adds a comment to the autogenerated docs for parsing code block (#19)
1 parent 6d28bcb commit 8b37b3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cobra2snooty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func GenDocs(cmd *cobra.Command, w io.Writer) error {
112112
if cmd.Runnable() {
113113
buf.WriteString(syntaxHeader)
114114
buf.WriteString(fmt.Sprintf("\n %s\n\n", strings.ReplaceAll(cmd.UseLine(), "[flags]", "[options]")))
115+
buf.WriteString(".. Code end marker, please don't delete this comment\n\n")
115116
}
116117
if err := printArgs(buf, cmd); err != nil {
117118
return err

0 commit comments

Comments
 (0)