Updated for new config project

This commit is contained in:
Robinson 2023-08-04 23:32:16 -06:00
parent 4a80c2c0b8
commit 00dffa78e0
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 5 additions and 15 deletions

View File

@ -111,19 +111,12 @@ class AeronRmiClientServer {
@JvmStatic
fun main(cliArgs: Array<String>) {
val configProcessor = dorkbox.config.Config {
this.build()
.adapter(Config::class.java)
.indent(" ")
}
val config = Config()
// Load all the JSON arguments, and save what we have
val config = configProcessor.init {
Config()
}
// cleans up the arguments AND loads stuff from ENV/CLI/etc
val arguments = configProcessor.process(cliArgs)
val configProcessor = dorkbox.config.ConfigProcessor(config)
.envPrefix("")
.cliArguments(cliArgs)
.process()
val acs = AeronRmiClientServer()
try {

View File

@ -15,9 +15,6 @@
*/
package dorkboxTest.network.app
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal class Config {
var ip = "127.0.0.1"