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

Function streamFlag

http/codegen/client_cli.go:289–291  ·  view source on GitHub ↗

streamFlag returns the flag used to specify the upload file for endpoints that use SkipRequestBodyEncodeDecode.

(svcn, en string)

Source from the content-addressed store, hash-verified

287// streamFlag returns the flag used to specify the upload file for endpoints
288// that use SkipRequestBodyEncodeDecode.
289func streamFlag(svcn, en string) *cli.FlagData {
290 return cli.NewFlagData(svcn, en, "stream", "string", "path to file containing the streamed request body", true, "goa.png", nil)
291}
292
293// streamingCmdExists returns true if at least one command in the list of commands
294// uses stream for sending payload/result.

Callers 2

buildSubcommandDataFunction · 0.85
buildFlagsFunction · 0.85

Calls 1

NewFlagDataFunction · 0.92

Tested by

no test coverage detected