MCPcopy Create free account
hub / github.com/goadesign/goa / CommandUsage

Function CommandUsage

codegen/cli/cli.go:303–310  ·  view source on GitHub ↗

CommandUsage builds the section templates that can be used to generate the endpoint command usage code.

(data *CommandData)

Source from the content-addressed store, hash-verified

301// CommandUsage builds the section templates that can be used to generate the
302// endpoint command usage code.
303func 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.

Callers 2

endpointParserFunction · 0.92
endpointParserFunction · 0.92

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected