###
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
###
krch
/
org.danbrough.krch
/
KEnvironment
KEnvironment
open
class
KEnvironment
(
val
settings
:
KEnvironment.Settings
=
Settings()
,
cmdArgs
:
Array
<
String
>
=
emptyArray()
)
Inheritors
KEnvironmentNative
KEnvironmentWeb
KEnvironmentAndroid
KEnvironmentJVM
Members
Constructors
KEnvironment
Link copied to clipboard
constructor
(
settings
:
KEnvironment.Settings
=
Settings()
,
cmdArgs
:
Array
<
String
>
=
emptyArray()
)
Types
Settings
Link copied to clipboard
data
class
Settings
(
val
envVarPrefix
:
String
=
"KRCH"
,
val
rootCommandName
:
String
=
envVarPrefix.lowercase()
,
val
defaultHomeDirName
:
String
=
"."
,
val
defaultConfigName
:
String
=
".properties"
,
val
defaultHistoryName
:
String
=
".history"
)
Properties
args
Link copied to clipboard
open
val
args
:
MutableList
<
String
>
config
File
Path
Link copied to clipboard
open
val
configFilePath
:
Path
context
Builder
Link copied to clipboard
var
contextBuilder
:
Context.Builder
.
(
)
->
Unit
coroutine
Context
IO
Link copied to clipboard
open
val
coroutineContextIO
:
CoroutineContext
coroutine
Context
Main
Link copied to clipboard
open
val
coroutineContextMain
:
CoroutineContext
settings
Link copied to clipboard
val
settings
:
KEnvironment.Settings
Functions
get
Env
Link copied to clipboard
open
fun
getEnv
(
name
:
String
)
:
String
?
path
To
Sink
Link copied to clipboard
open
fun
pathToSink
(
path
:
String
)
:
Sink
path
To
Source
Link copied to clipboard
open
fun
pathToSource
(
path
:
String
)
:
Source
thread
Name
Link copied to clipboard
open
fun
threadName
(
)
:
String