-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
689 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit | ||
rev: v3.7.0 | ||
hooks: | ||
- id: validate_manifest | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.13.0 | ||
hooks: | ||
- id: pretty-format-kotlin | ||
args: [ --ktfmt ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
# JVM Runner | ||
|
||
[![Test Suite](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml/badge.svg)](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml) [![ktlint](https://img.shields.io/badge/ktlint%20code--style-%E2%9D%A4-FF4081)](https://pinterest.github.io/ktlint/) | ||
[![Test Suite](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml/badge.svg)](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml) | ||
|
||
A proof-of-concept implementation of a Kotlin-based JVM runner. | ||
|
||
#### Notes | ||
|
||
###### Pre-Commit Hooks | ||
|
||
This repository supports `pre-commit` hooks. To install the hooks, run the following command. | ||
|
||
```shell | ||
pre-commit install | ||
``` | ||
|
||
###### Formatting | ||
|
||
The code in this repository is formatted using Meta's `ktfmt` tool, mainly due to the following feature. | ||
|
||
> `ktfmt` ignores most existing formatting. It respects existing newlines in some places, but in general, its output is deterministic and is independent of the input code. | ||
No feature flags are used. Invoke using the following command. | ||
|
||
```shell | ||
ktfmt ./**/*.kt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package technology.idlab | ||
|
||
import technology.idlab.runner.Pipeline | ||
import java.io.File | ||
import kotlin.system.exitProcess | ||
import technology.idlab.runner.Pipeline | ||
|
||
fun main(args: Array<String>) { | ||
// Parse arguments. | ||
if (args.size != 1) { | ||
println("Usage: jvm-runner <config>") | ||
exitProcess(0) | ||
} | ||
// Parse arguments. | ||
if (args.size != 1) { | ||
println("Usage: jvm-runner <config>") | ||
exitProcess(0) | ||
} | ||
|
||
// Parse and load the configuration. | ||
val configPath = args[0] | ||
val config = File(configPath) | ||
val pipeline = Pipeline(config) | ||
// Parse and load the configuration. | ||
val configPath = args[0] | ||
val config = File(configPath) | ||
val pipeline = Pipeline(config) | ||
|
||
// Execute all functions. | ||
pipeline.executeSync() | ||
// Execute all functions. | ||
pipeline.executeSync() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.