Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilymclean/pkl-codegen
A collection of docker images to generate code bindings for pkl models (in either Swift, Java, or Kotlin).
https://github.com/emilymclean/pkl-codegen
docker-image pkl
Last synced: about 1 month ago
JSON representation
A collection of docker images to generate code bindings for pkl models (in either Swift, Java, or Kotlin).
- Host: GitHub
- URL: https://github.com/emilymclean/pkl-codegen
- Owner: emilymclean
- Created: 2024-10-30T04:19:53.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T00:34:21.000Z (about 2 months ago)
- Last Synced: 2024-11-19T01:22:01.651Z (about 2 months ago)
- Topics: docker-image, pkl
- Language: Shell
- Homepage:
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pkl-codegen
A collection of docker images to generate code bindings for pkl models (in either Swift, Java, or Kotlin). Also supports PklDoc generation.Current builds are created for pkl version 0.25.0, 0.25.1, 0.25.2, 0.25.3, 0.26.0, 0.26.1, 0.26.2, 0.26.3 and 0.27.0.
## Usage
Given an input model of `example.pkl`, you can generate a code binding for a selected platform and pkl version using the following command:```sh
docker run --rm -v "./:/data" ghcr.io/emilymclean/pkl-codegen-: /data/example.pkl -o /data/java
```So, for Kotlin using pkl version 0.27.0:
```sh
docker run --rm -v "./:/data" ghcr.io/emilymclean/pkl-codegen-kotlin:0.27.0 /data/example.pkl -o /data/java
```The supported platforms/images are as follows:
| Output | Image |
|-------- |---------------------- |
| Kotlin | `pkl-codegen-kotlin` |
| Java | `pkl-codegen-java` |
| Swift | `pkl-codegen-swift` |
| Go | `pkl-codegen-go` |
| PklDoc | `pkl-codegen-doc` |