FDio / govpp

Go toolset for the VPP.
Apache License 2.0
193 stars 82 forks source link

support for .tar.gz archives as input of govpp apigen #125

Closed sknat closed 1 year ago

sknat commented 1 year ago

It would be nice to be able to pass an archive as an input to the apigen cli, i.e. :

//go:generate go run go.fd.io/govpp/cmd/binapi-generator --gen rpc -o ./bindings --input ./somefile.tar.gz

Where ./somefile.tar.gz contains

core/
  ip_types.api.json
  ip.api.json
  ...
plugins/
  abf.api.json
  acl.api.json
  ...

In some cases, the api specification is exchanged as a compressed bundle, having this feature would spare the caller the hassle to (decompress ; pass the temporary directory as input ; cleanup)