All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.KGroundPlayground.kt Maven / Gradle / Ivy

There is a newer version: 0.1.03
Show newest version
package pl.mareklangiewicz.kground.playground

import kotlinx.coroutines.*
import pl.mareklangiewicz.kommand.*
import pl.mareklangiewicz.kommand.core.*


/**
 * Experimenting directly in kotlin notebooks would be ideal, but the IDE support it's still not great...
 * So this file is to experiment here, with better IDE support, and then C&P working code snippets into notebooks.
 * Do not commit changes in this file. The kgroundx-jupyter:run task is set up to run the main fun here.
 */

fun main() {
    runBlocking {
        playground()
    }
}

suspend fun playground() {
    println("Let's play with kground and kommand integration...")
    ls { -LsOpt.LongFormat; -LsOpt.All }.x {
        println("out line: $it")
    }
    // TODO: better example stuff that can be done with KGround
    //  (but only some small non invasive code)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy