To install and run the Autogen project from the project directory:
- In the command line,
cd
to the main project directoryds3_autogen
and install the cli module:
./gradlew clean ds3-autogen-cli:install
- You can launch the cli using the following command. Here is an example of launching the help menu:
./ds3-autogen-cli/build/install/ds3-autogen-cli/bin/ds3-autogen-cli -h
If you want to run and generate the project cleanly in a separate file:
- In the command line,
cd
to the main project directoryds3_autogen
and create a tar
./gradlew clean distTar
cd
to the desired folder and run:
tar -xvf <path to autogen root folder>/ds3_autogen/ds3-autogen-cli/build/distributions/ds3-autogen-cli-1.0.0-SNAPSHOT.tar
- The Autogen project can then be run with the following command. Here is an example of launching the help menu:
./ds3-autogen-cli-1.0.0-SNAPSHOT/bin/ds3-autogen-cli -h
For specific instructions on how to generate and integrate each languages SDK files, see the individual module README:
The command line has 3 required arguments and 3 optional arguments.
-d
The directory where the generated code will be written to. If the directory does not exist, it will be created.-i
The name of the spec file for the DS3 API to be generated. Some versions of the spec can be found in thecontracts
folder.-l
The programming language that will be generated. Options areC
,JAVA
,NET
,PYTHON
, andPYTHON3
. The language is case insensitive.
-h
Prints the proper usage. If this is option is specified, all other options are ignored and no code is generated.-internal
Generates code for the Spectra Internal commands. The functionality of generated internal commands is not guaranteed.--no-doc
Generates the commands excluding documentation. Documentation is generated based on the defaultDs3DocSpec
.
To run the Autogen tests for a given language module, use the following command with language
substituted for the
desired language module (c, java, net, python, python3 or go):
./gradlew clean ds3-autogen-language:test