genServiceProtos

furo genServiceProtos #

Generate the service protos from the service specs.

The generated proto services will be generated to the configured path.

As you may have noticed the specs have a attribute targetfile (target in µServices, sorry). Service specs with the same targetfile or target value will be generated in to the same proto file.

Attention: You can not target Services and Messages to the same file, because for furo, the generating of types/messages and the generation of services are two different tasks.

.furo config example

1
2
3
build:
  proto:
    targetDir: "./dist/protos" #Hint: add this to your proto include path
furo genServiceProtos [flags]

Options #

  -h, --help   help for genServiceProtos

Options inherited from parent commands #

      --config string   config file (default is CWD/.furo.yaml)
Auto generated by spf13/cobra on 23-Oct-2020 #