io.bkbn.skelegro.docker.commands.User.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 User(
var name: String = "",
comment: String? = null
) : Command(comment) {
override fun tag() = "USER"
override fun toString() = "${tag()} $name"
}
fun Dockerfile.USER(init: User.() -> Unit): User {
val user = User().apply(init)
steps.add(user)
return user
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy