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

Function ExampleCLIFiles

grpc/codegen/example_cli.go:15–23  ·  view source on GitHub ↗

ExampleCLIFiles returns an example gRPC client tool implementation.

(genpkg string, services *ServicesData)

Source from the content-addressed store, hash-verified

13
14// ExampleCLIFiles returns an example gRPC client tool implementation.
15func ExampleCLIFiles(genpkg string, services *ServicesData) []*codegen.File {
16 var files []*codegen.File
17 for _, svr := range services.Root.API.Servers {
18 if f := exampleCLI(genpkg, services, svr); f != nil {
19 files = append(files, f)
20 }
21 }
22 return files
23}
24
25// exampleCLI returns an example client tool HTTP implementation for the given
26// server expression.

Callers 1

TestExampleCLIFilesFunction · 0.70

Calls 1

exampleCLIFunction · 0.70

Tested by 1

TestExampleCLIFilesFunction · 0.56