https://github.com/getwilds/wdlparse
Parse WDLs
https://github.com/getwilds/wdlparse
Last synced: 10 months ago
JSON representation
Parse WDLs
- Host: GitHub
- URL: https://github.com/getwilds/wdlparse
- Owner: getwilds
- Created: 2025-09-24T21:28:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-30T21:05:07.000Z (10 months ago)
- Last Synced: 2025-09-30T22:10:46.047Z (10 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wdlparse
[](https://github.com/getwilds/wdlparse/actions/workflows/test.yml)
> [!NOTE]
> This is an alpha version.
A command-line tool for parsing WDL (Workflow Description Language) files.
## Installation
If you don't have Rust/cargo installed go to to get them installed.
### From source
```bash
cargo install --path .
```
### From releases
Go to the release pages to get the latest version.
```bash
cargo install --git https://github.com/getwilds/wdlparse --tag v0.0.5
```
## Testing
To run tests, execute the following command:
```bash
cargo t
```
## Usage
### Basic Commands
#### Parse a WDL file
```bash
# Display syntax tree (default)
wdlparse parse examples/hello_world.wdl
# Human-readable output
wdlparse parse examples/hello_world.wdl --format human
# JSON output
wdlparse parse examples/hello_world.wdl --format json
# Verbose output with diagnostics
wdlparse parse examples/hello_world.wdl --verbose
```
#### Get file information
```bash
# Show WDL file structure and metadata
wdlparse info examples/hello_world.wdl
# JSON output
wdlparse info examples/hello_world.wdl --format json
```
### Output Formats
- **human**: User-friendly output with colors and formatting
- **json**: Machine-readable JSON output
- **tree**: Raw syntax tree output (parse command only)