main
It is expected, that args will contain ONE argument with path to the config json. Sample of launching:
./gradlew run --args="sample.config.json"Content copied to clipboard
Content of sample.config.json described in Config KDocs.
You may build runnable app using:
./gradlew assembleDistContent copied to clipboard
In that case in build/distributions folder you will be able to find zip and tar files with all required tools for application running (via their bin/app_name binary). In that case yoy will not need to pass --args=... and launch will look like ./bin/app_name sample.config.json
Debug mode
You may pass the second parameter, one of LogLevel enum variants to setup KSLog minimal logging level. Sample:
./gradlew run --args="sample.config.json DEBUG" // enable debugging outputContent copied to clipboard
OR
./gradlew run --args="sample.config.json WARNING" // enable logging since WARNINGContent copied to clipboard
Default level is LogLevel.INFO