Package-level declarations
Types
Link copied to clipboard
Command to start a web server serving a local file, allowing for live reloading.
Link copied to clipboard
data class WebServerOptions(val port: Int, val targetFile: File, val browserLauncher: BrowserLauncher?, val preferLivePreviewUrl: Boolean)
Options for the local web server.
Link copied to clipboard
object WebServerStarter
Starter of the web server.
Functions
Link copied to clipboard
fun CliktCommand.browserLauncherOption(default: BrowserLauncher = NoneBrowserLauncher(), shouldValidate: () -> Boolean = { true }, envLookup: (String) -> String? = System::getenv): OptionDelegate<out BrowserLauncher?>
Option to select a browser launcher from the CLI, with validation and support of selection by name, path, or fixed choices.