###
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
###
krch
/
org.danbrough.krch
/
KContext
KContext
class
KContext
(
val
env
:
KEnvironment
,
extns
:
KExtension
)
:
CoroutineContext.Element
Members
Members & Extensions
Constructors
KContext
Link copied to clipboard
constructor
(
env
:
KEnvironment
,
vararg
extns
:
KExtension
)
Types
Aware
Link copied to clipboard
interface
Aware
Key
KContext
Link copied to clipboard
object
KeyKContext
:
CoroutineContext.Key
<
KContext
>
Properties
command
Map
Link copied to clipboard
val
commandMap
:
KCommandMap
env
Link copied to clipboard
val
env
:
KEnvironment
extensions
Link copied to clipboard
val
extensions
:
List
<
KExtension
>
k
Context
Link copied to clipboard
val
CoroutineContext
.
kContext
:
KContext
?
key
Link copied to clipboard
open
override
val
key
:
CoroutineContext.Key
<
*
>
k
Shell
Link copied to clipboard
val
CoroutineContext
.
kShell
:
KShell
?
root
Command
Link copied to clipboard
var
rootCommand
:
KRootCommand
running
Link copied to clipboard
var
running
:
Boolean
scope
Link copied to clipboard
val
scope
:
CoroutineScope
Functions
extension
Link copied to clipboard
inline
fun
<
T
>
extension
(
)
:
T
fold
Link copied to clipboard
open
override
fun
<
R
>
fold
(
initial
:
R
,
operation
:
(
R
,
CoroutineContext.Element
)
->
R
)
:
R
get
Link copied to clipboard
open
operator override
fun
<
E
:
CoroutineContext.Element
>
get
(
key
:
CoroutineContext.Key
<
E
>
)
:
E
?
krch
Main
Link copied to clipboard
suspend
fun
KContext
.
krchMain
(
)
main
Link copied to clipboard
suspend
fun
main
(
vararg
commands
:
Pair
<
String
,
KCommandConstructor
>
)
minus
Key
Link copied to clipboard
open
override
fun
minusKey
(
key
:
CoroutineContext.Key
<
*
>
)
:
CoroutineContext
on
Stop
Link copied to clipboard
fun
onStop
(
handler
:
(
)
->
Unit
)
plus
Link copied to clipboard
open
operator
fun
plus
(
context
:
CoroutineContext
)
:
CoroutineContext