commonMain.Vim.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommandline Show documentation
Show all versions of kommandline Show documentation
Kotlin DSL for popular CLI commands.
package pl.mareklangiewicz.kommand
import pl.mareklangiewicz.kground.*
import pl.mareklangiewicz.kommand.Vim.Option.*
fun vim(vararg files: String, init: Vim.() -> Unit = {}) = Vim(files.toMutableList()).apply(init)
fun gvim(vararg files: String, init: Vim.() -> Unit = {}) = vim(*files) { -Gui; init() }
data class Vim(
val files: MutableList = mutableListOf(),
val options: MutableList