<divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="main.html"><spanclass="token function">main</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">args<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span></div><pclass="paragraph">It is expected, that <ahref="main.html">args</a> will contain ONE argument with path to the config json. Sample of launching:</p><divclass="sample-container"><pre><codeclass="block lang-bash"theme="idea">./gradlew run --args="sample.config.json"</code></pre><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Content of <codeclass="lang-kotlin">sample.config.json</code> described in <spandata-unresolved-link="dev.inmo.micro_utils.startup.launcher/Config///PointingToDeclaration/">Config</span> KDocs.</p><pclass="paragraph">You may build runnable app using:</p><divclass="sample-container"><pre><codeclass="block lang-bash"theme="idea">./gradlew assembleDist</code></pre><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">In that case in <codeclass="lang-kotlin">build/distributions</code> folder you will be able to find zip and tar files with all required tools for application running (via their <codeclass="lang-kotlin">bin/app_name</code> binary). In that case yoy will not need to pass <codeclass="lang-kotlin">--args=...</code> and launch will look like <codeclass="lang-kotlin">./bin/app_name sample.config.json</code></p></div></div>