ProcessManager

interface ProcessManager

Process Manager

Initialized early in Elide's startup routine, the Process Manager keeps track of data which is entirely static in nature, and which must be shared across many different parts of the runtime. For example, the arguments the program was dispatched with, and the current working directory, and so on.

When the runtime starts up, the Process Manager is initialized in static form with these values. Under testing, DI is used to mock these values.

Types

Link copied to clipboard
object Companion

Static access to process manager state.

Functions

Link copied to clipboard
abstract fun arguments(): Array<String>

Retrieve the arguments the program was dispatched with.

Link copied to clipboard
abstract fun binpath(): Path?

Retrieve the path to the currently executing Elide binary.

Link copied to clipboard
abstract fun workingDirectory(): String

Retrieve the current working directory of the program.