ExampleCLIFiles returns example JSON-RPC client CLI implementation.
(genpkg string, data *httpcodegen.ServicesData)
| 10 | |
| 11 | // ExampleCLIFiles returns example JSON-RPC client CLI implementation. |
| 12 | func ExampleCLIFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File { |
| 13 | var fw []*codegen.File |
| 14 | for _, svr := range data.Root.API.Servers { |
| 15 | if m := exampleCLI(genpkg, data, svr); m != nil { |
| 16 | fw = append(fw, m) |
| 17 | } |
| 18 | } |
| 19 | return fw |
| 20 | } |
| 21 | |
| 22 | func exampleCLI(genpkg string, data *httpcodegen.ServicesData, svr *expr.ServerExpr) *codegen.File { |
| 23 | f := httpcodegen.ExampleCLI(genpkg, svr, data) |
nothing calls this directly
no test coverage detected