zerotier / zerotier-one-api-spec

ZeroTier
https://zerotier.com
3 stars 0 forks source link

Version the generated specs automatically #5

Closed laduke closed 9 months ago

laduke commented 9 months ago

keep them in step with the npm package version which is also the github release tag/version.

there's currently no straigtforward way to compile time send variables into a spec.

So we generate a variables.tsp file from a "template" The template is

printf 'alias Version = \"%s\";\n' $npm_package_version > variables.tsp