ServiceApp

expect abstract class ServiceApp(val appName: String) : BaseServiceApp
actual abstract class ServiceApp(val appName: String) : BaseServiceApp

Base class that makes it easy to host a default service on any combination of std in/out, http, and sockets.

actual abstract class ServiceApp(val appName: String) : BaseServiceApp

Base class that makes it easy to host a default service on any combination of std in/out, http, and sockets.

Constructors

Link copied to clipboard
expect constructor(appName: String)
actual constructor(appName: String)
actual constructor(appName: String)

Properties

allowMultipleSubcommands
Link copied to clipboard
Link copied to clipboard
autoCompleteEnvvar
Link copied to clipboard
commandName
Link copied to clipboard
Link copied to clipboard
val cors: <Error class: unknown class>
currentContext
Link copied to clipboard
val currentContext: Context
val currentContext: Context
val currentContext: Context
Link copied to clipboard
val enableWebsockets: <Error class: unknown class>
Link copied to clipboard
helpTags
Link copied to clipboard
hiddenFromHelp
Link copied to clipboard
Link copied to clipboard
val http: List<Int>
val http: <Error class: unknown class>
val http: List<Int>
invokeWithoutSubcommand
Link copied to clipboard
messages
Link copied to clipboard
Link copied to clipboard
val noHttp: <Error class: unknown class>
Link copied to clipboard
val port: <Error class: unknown class>
printHelpOnEmptyArgs
Link copied to clipboard
Link copied to clipboard
val stdOut: <Error class: unknown class>
treatUnknownOptionsAsArgs
Link copied to clipboard

Functions

aliases
Link copied to clipboard
open fun aliases(): Map<String, List<String>>
open fun aliases(): Map<String, List<String>>
open fun aliases(): Map<String, List<String>>
allHelpParams
Link copied to clipboard
open fun allHelpParams(): List<HelpFormatter.ParameterHelp>
open fun allHelpParams(): List<HelpFormatter.ParameterHelp>
open fun allHelpParams(): List<HelpFormatter.ParameterHelp>
commandHelp
Link copied to clipboard
open fun commandHelp(context: Context): String
open fun commandHelp(context: Context): String
open fun commandHelp(context: Context): String
commandHelpEpilog
Link copied to clipboard
open fun commandHelpEpilog(context: Context): String
open fun commandHelpEpilog(context: Context): String
open fun commandHelpEpilog(context: Context): String
configureContext
Link copied to clipboard
fun configureContext(block: Context.Builder.() -> Unit)
fun configureContext(block: Context.Builder.() -> Unit)
fun configureContext(block: Context.Builder.() -> Unit)
Link copied to clipboard
open fun Application.configureHttp()
open fun Application.configureHttp()
open fun Application.configureHttp()
Link copied to clipboard
echo
Link copied to clipboard
fun echo()
fun echo(message: Any?, trailingNewline: Boolean, err: Boolean)
fun echo()
fun echo(message: Any?, trailingNewline: Boolean, err: Boolean)
fun echo()
fun echo(message: Any?, trailingNewline: Boolean, err: Boolean)
echoFormattedHelp
Link copied to clipboard
fun echoFormattedHelp(error: CliktError?)
fun echoFormattedHelp(error: CliktError?)
fun echoFormattedHelp(error: CliktError?)
Link copied to clipboard
expect open override fun embeddedServer(port: Int, function: Application.() -> Unit): EmbeddedServer<*, *>
actual open override fun embeddedServer(port: Int, function: Application.() -> Unit): EmbeddedServer<*, *>
actual open override fun embeddedServer(port: Int, function: Application.() -> Unit): EmbeddedServer<*, *>
getFormattedHelp
Link copied to clipboard
fun getFormattedHelp(error: CliktError?): String?
fun getFormattedHelp(error: CliktError?): String?
fun getFormattedHelp(error: CliktError?): String?
help
Link copied to clipboard
open fun help(context: Context): String
open fun help(context: Context): String
open fun help(context: Context): String
helpEpilog
Link copied to clipboard
open fun helpEpilog(context: Context): String
open fun helpEpilog(context: Context): String
open fun helpEpilog(context: Context): String
issueMessage
Link copied to clipboard
fun issueMessage(message: String)
fun issueMessage(message: String)
fun issueMessage(message: String)
registerArgument
Link copied to clipboard
fun registerArgument(argument: Argument)
fun registerArgument(argument: Argument)
fun registerArgument(argument: Argument)
registeredArguments
Link copied to clipboard
fun registeredArguments(): List<Argument>
fun registeredArguments(): List<Argument>
fun registeredArguments(): List<Argument>
registeredOptions
Link copied to clipboard
fun registeredOptions(): List<Option>
fun registeredOptions(): List<Option>
fun registeredOptions(): List<Option>
registeredParameterGroups
Link copied to clipboard
fun registeredParameterGroups(): List<ParameterGroup>
fun registeredParameterGroups(): List<ParameterGroup>
fun registeredParameterGroups(): List<ParameterGroup>
registeredSubcommandNames
Link copied to clipboard
registeredSubcommands
Link copied to clipboard
fun registeredSubcommands(): List<CoreCliktCommand>
fun registeredSubcommands(): List<CoreCliktCommand>
fun registeredSubcommands(): List<CoreCliktCommand>
registerOption
Link copied to clipboard
open override fun registerOption(option: GroupableOption)
fun registerOption(option: Option)
open override fun registerOption(option: GroupableOption)
fun registerOption(option: Option)
open override fun registerOption(option: GroupableOption)
fun registerOption(option: Option)
registerOptionGroup
Link copied to clipboard
fun registerOptionGroup(group: ParameterGroup)
fun registerOptionGroup(group: ParameterGroup)
fun registerOptionGroup(group: ParameterGroup)
resetContext
Link copied to clipboard
fun resetContext(parent: Context?): Context
fun resetContext(parent: Context?): Context
fun resetContext(parent: Context?): Context
Link copied to clipboard
open override fun run()
open override fun run()
open override fun run()
toString
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String