CommandUsage builds the section templates that can be used to generate the endpoint command usage code.
(data *CommandData)
| 301 | // CommandUsage builds the section templates that can be used to generate the |
| 302 | // endpoint command usage code. |
| 303 | func CommandUsage(data *CommandData) *codegen.SectionTemplate { |
| 304 | return &codegen.SectionTemplate{ |
| 305 | Name: "cli-command-usage", |
| 306 | Source: cliTemplates.Read(commandUsageT), |
| 307 | Data: data, |
| 308 | FuncMap: map[string]any{"printDescription": printDescription}, |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | // PayloadBuilderSection builds the section template that can be used to |
| 313 | // generate the payload builder code. |
no test coverage detected