yahoo/parsec-rdl-gen

Name: parsec-rdl-gen

Owner: Yahoo Inc.

Description: null

Created: 2016-11-28 17:58:32.0

Updated: 2017-02-10 04:17:40.0

Pushed: 2018-05-14 03:02:18.0

Homepage: null

Size: 216

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

parsec-rdl-gen Build Status

Parsec Ardielle (RDL) External Generators

Usage

These generators are designed to co-work with ardielle-tools but can also be used independently. They are executable binaries and takes JSON representation of Ardielle schemas from StdIn.

Sample usage for co-working with ardielle-tools:

rdl generate [options] <parsec-java-model | parsec-java-server | parsec-java-client | parsec-swagger> <schema.rdl>

Please refer to ardielle-tools for more information.

How to build

Please follow https://golang.org/doc/install to download and install the GO. You also need to set the GOPATH environment, the source code to checkout and build would belong this GOPATH setting, for instance, I set the GOPATH to /Users/guang001/Documents/workspace/go, then I execute the command:

et github.com/yahoo/parsec-rdl-gen/...

Then GO will checkout the source code to $GOPATH/src/github.com/yahoo/parsec-rdl-gen/, this should be /Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/ in my case, and 'go get' command will build the binary after the fetch code, the binary would be put in $GOPATH/bin/ path. The detail you could reference How to Write Go Code.

So, to build the parsec-rdl-gen, you only need execute: 'go get github.com/yahoo/parsec-rdl-gen/…' if you are ready the GO enviroment. If you need switch the git branch, you could:

Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/
checkout -b dev

or change to your fork REPO:

Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/
remote set-url origin git@git.corp.yahoo.com:guang001/apex.git

Note: The 'go get' command would not refetch(checkout) the code if target directory already exist.

License

Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.