Package-level declarations

Types

Link copied to clipboard
class StartWebServerCommand : CliktCommand

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

Starter of the web server.

Properties

Link copied to clipboard
const val DEFAULT_SERVER_PORT: Int = 8089

The default port to start the web server on.

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.