from

open fun from(file: File)

Generates a script from the provided file.


open fun from(url: URL)
open fun from(url: String)

Generates a script from the provided url.


abstract fun from(shebang: String? = "#!/usr/bin/env bash", script: () -> String)

Generates a script with either the provided shebang or with a shebang invoking bash, and with the result of the provided function.