dbaelz / Konclik

Konclik: Kotlin/Native Command Line Interface Kit
Apache License 2.0
46 stars 4 forks source link
cli cli-app kotlin kotlin-native

Konclik: Kotlin/Native Command Line Interface Kit

Build Status

Konclik is a library for the development of a CLI application.

Why Konclik?

Version

Contributing

Issues, contributions and suggestions are very welcome. Please report bugs, improvements and new features with an issue, so we can discuss the next steps.

Project structure

This project uses the new MPP plugin, the root contains Konclik's core source in the src directory. In addition to the core, the following submodules are available.

Setup

Konclik is published to bintray and can easily be integrated into an existing project.

Repository

repositories {
    maven {
        url "https://dl.bintray.com/dbaelz/konclik"
    }
    // Other repos like:
    //jcenter()
}

Download

dependencies {
    // With Gradle Metadata enabled, all targets can depend on
    implementation "de.dbaelz.konclik:konclik:0.6.0"

    // All artifacts are available with the -target suffix
    implementation "de.dbaelz.konclik:konclik-macos:0.6.0"
    implementation "de.dbaelz.konclik:konclik-linux:0.6.0"
    implementation "de.dbaelz.konclik:konclik-windows:0.6.0"
    implementation "de.dbaelz.konclik:konclik-jvm:0.6.0"
    implementation "de.dbaelz.konclik:konclik-js:0.6.0"
}

Available tasks

Note: If the Host machine does not support a specific target, that target's tasks will simply be ignored.

The following Gradle tasks are available:

Konclik DSL Example

This project provides an example, which shows the usage of the DSL.

The current DSL is WIP, but suitable to build effective CLI applications. It provides KDoc to explain the usage. A short overview of the components:

License

Apache 2 License