rdf-connect / orchestrator

Platform agnostic orchestrator for RDF Connect, written in Kotlin.
MIT License
1 stars 0 forks source link

Feature: Additional Argument Types #2

Closed jenspots closed 4 months ago

jenspots commented 4 months ago

Arguments are parsed by the following statement.

args[argumentName] =
    when (type) {
      "integer" -> value.toInt()
      "ChannelWriter" ->
          writers[value] ?: Log.shared.fatal("Writer $argumentName not found")
      "ChannelReader" ->
          readers[value] ?: Log.shared.fatal("Reader $argumentName not found")
      else -> Log.shared.fatal("Unknown type $type")
    }

It would be interesting to figure out if we can build this when branch statement dynamically, so it won't get all too messy.

jenspots commented 4 months ago

The list of available argument types has greatly expanded in fe39f139ad4870764bea3c3172187fe865baa9d4, so this issue will be closed. For additional types, new issues should be created for either the beta or full release milestone.