summaryrefslogtreecommitdiff
path: root/simulator/opendc/opendc-runner-web/src/main/kotlin
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-07-15 18:02:43 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:05 +0200
commita4ae44e7f5bbfb293cdce256da3c40f927605ac9 (patch)
tree9ba1aab078c93d642af96566f44c26dce464295e /simulator/opendc/opendc-runner-web/src/main/kotlin
parenta196ba2c08bd16479134ab542f2560b75f19424f (diff)
Add skeleton for web runner
Diffstat (limited to 'simulator/opendc/opendc-runner-web/src/main/kotlin')
-rw-r--r--simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt b/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt
new file mode 100644
index 00000000..3cee259c
--- /dev/null
+++ b/simulator/opendc/opendc-runner-web/src/main/kotlin/com/atlarge/opendc/runner/web/Main.kt
@@ -0,0 +1,20 @@
+package com.atlarge.opendc.runner.web
+
+import com.github.ajalt.clikt.core.CliktCommand
+import mu.KotlinLogging
+
+private val logger = KotlinLogging.logger {}
+
+/**
+ * Represents the CLI command for starting the OpenDC web runner.
+ */
+class RunnerCli : CliktCommand(name = "runner") {
+ override fun run() {
+ logger.info { "Starting OpenDC web runner" }
+ }
+}
+
+/**
+ * Main entry point of the runner.
+ */
+fun main(args: Array<String>) = RunnerCli().main(args)