commonMain.NotifySend.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.*
/** [notify-send ubuntu manpage](https://manpages.ubuntu.com/manpages/impish/man1/notify-send.1.html) */
fun notify(summary: String = "", body: String? = null, init: NotifySend.() -> Unit = {}) =
NotifySend(summary, body).apply(init)
/** [notify-send ubuntu manpage](https://manpages.ubuntu.com/manpages/impish/man1/notify-send.1.html) */
data class NotifySend(
var summary: String = "",
var body: String? = null,
val options: MutableList