io7m | single-page | multi-page | Aradine User Manual
3.4. check
Previous
3. Command Line
Up
3.6. install-instrument
Next

# 3.5. codegen

- 3.5.1. Name
- 3.5.2. Description
- 3.5.3. Parameters
- 3.5.4. Examples

## 3.5.1. Name

1
codegen - Generate code for an instrument file.

## 3.5.2. Description

1
The codegen command generates code from an instrument description.

## 3.5.3. Parameters

### 3.5.3.1. --file

Attribute | Value
--- | ---
Name | --file
Type | java.nio.file.Path
Default Value |
Cardinality | [1, 1]
Description | The instrument description file.

### 3.5.3.2. --output-resource-directory

Attribute | Value
--- | ---
Name | --output-resource-directory
Type | java.nio.file.Path
Default Value |
Cardinality | [1, 1]
Description | The output resource directory.

### 3.5.3.3. --output-source-directory

Attribute | Value
--- | ---
Name | --output-source-directory
Type | java.nio.file.Path
Default Value |
Cardinality | [1, 1]
Description | The output Java source directory.

### 3.5.3.4. --package-name

Attribute | Value
--- | ---
Name | --package-name
Type | com.io7m.lanark.core.RDottedName
Default Value |
Cardinality | [1, 1]
Description | The Java package name.

### 3.5.3.5. --verbose

Attribute | Value
--- | ---
Name | --verbose
Type | com.io7m.quarrel.ext.logback.QLogLevel
Default Value | info
Cardinality | [1, 1]
Description | Set the logging level of the application.

## 3.5.4. Examples

### 3.5.4.1. Example

    $ aradine-cli instrument codegen \
    --package-name com.io7m.example
    --output-source-directory src
    --output-resource-directory res
    --file sampler.json

    {
      "Message" : "Generated class: src/com/io7m/example/Parameters.java",
      "Level" : "INFO"
    }
    {
      "Message" : "Generated class: src/com/io7m/example/Ports.java",
      "Level" : "INFO"
    }
    {
      "Message" : "Generated instrument file: res/com/io7m/example/instrument.json",
      "Level" : "INFO"
    }

3.4. check
Previous
3. Command Line
Up
3.6. install-instrument
Next
io7m | single-page | multi-page | Aradine User Manual