PayloadBuilderSection builds the section template that can be used to generate the payload builder code.
(buildFunction *BuildFunctionData)
| 312 | // PayloadBuilderSection builds the section template that can be used to |
| 313 | // generate the payload builder code. |
| 314 | func PayloadBuilderSection(buildFunction *BuildFunctionData) *codegen.SectionTemplate { |
| 315 | return &codegen.SectionTemplate{ |
| 316 | Name: "cli-build-payload", |
| 317 | Source: cliTemplates.Read(buildPayloadT), |
| 318 | Data: buildFunction, |
| 319 | FuncMap: map[string]any{ |
| 320 | "fieldCode": fieldCode, |
| 321 | }, |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | // NewFlagData creates a new FlagData from the given argument attributes. |
| 326 | // |
no test coverage detected