io.bkbn.skelegro.docker.commands.Arg.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skelegro-docker Show documentation
Show all versions of skelegro-docker Show documentation
A wacky assortment of Kotlin DSLs for infrastructure manifest generation
package io.bkbn.skelegro.docker.commands
import io.bkbn.skelegro.docker.Dockerfile
class Arg(
var name: String = "",
var default: String? = null,
comment: String? = null
) : Command(comment) {
override fun tag() = "ARG"
override fun toString() = "${tag()} ${if (default != null) "$name=$default" else name}"
}
fun Dockerfile.ARG(init: Arg.() -> Unit): Arg {
val arg = Arg().apply(init)
steps.add(arg)
return arg
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy