This library provides a command-line tool that is use for building the CWL
schema. Note that the version of the schema that is being build is availabe in
schema/cwl.jsonnet
as a "private variable" version:: "xxx"
.
- Ruby 2.0.0+. See rbenv for installing Ruby.
- Bundler. Run
gem install bundler
to install. - jsonnet v0.8.5. If using
OS X, you can install this with
brew install jsonnet
.
- Clone this repository.
- Run
bundle install
to install dependencies. - Run
bundle exec rake build
to build the schema which gets writte todist/cwl.avpr
.
If you're having trouble with Ruby, you can manually run Jsonnet with:
jsonnet --var DOC=false schema/cwl.jsonnet > dist/cwl.avpr
We use Ruby to validate the document as a proper Avro protocol and prettify
it prior to writing to to cwl.avpr
.