Skip to content

Commit 2a7d806

Browse files
updated doc template a bit
1 parent c0d902e commit 2a7d806

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docs/main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func CliDocs() {
9595
// Generates the Markdown
9696
func PrintMakrdown(cmd SlCmdGroup) {
9797

98-
var cmdTemplate = `
98+
var cmdTemplate = `<!-- THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT -->
9999
# ibmcloud sl {{.Name}}
100100
{: #{{.CommandShortLink}}}
101101
@@ -119,11 +119,8 @@ ibmcloud {{.Use}}
119119
{{range .Flags}}
120120
--{{.Name}}
121121
: {{.Help}}
122-
{{end}}
123-
{{end}}
124-
{{end}}
122+
{{end}}{{end}}{{end}}`
125123

126-
`
127124
mdTemplate, err := template.New("cmd template").Parse(cmdTemplate)
128125
checkError(err)
129126
filename := fmt.Sprintf("%v.md", cmd.CommandShortLink)

0 commit comments

Comments
 (0)