commonMain.DConfEditor.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.
The newest version!
package pl.mareklangiewicz.kommand
import pl.mareklangiewicz.kommand.DConfEditor.Option
/** [dconf-editor ubuntu manpage](http://manpages.ubuntu.com/manpages/impish/man1/dconf-editor.1.html) */
fun dconfedit(vararg options: Option, init: DConfEditor.() -> Unit = {}) =
DConfEditor(options.toMutableList()).apply(init)
/** [dconf-editor ubuntu manpage](http://manpages.ubuntu.com/manpages/impish/man1/dconf-editor.1.html) */
data class DConfEditor(
val options: MutableList