summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
diff options
context:
space:
mode:
authornea <romangraef@loves.dicksinhisan.us>2021-12-09 03:09:45 +0100
committernea <romangraef@loves.dicksinhisan.us>2021-12-09 03:09:45 +0100
commit3efd5ae38bf5467c3d61c9b3478ca96950104510 (patch)
tree2d777afecfc0433ddbf05b8d7421fa5d35ad38fa /src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
parentf8c6246a262b1d15e42ce812363f7d4e4eb16b8a (diff)
downloadneamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.gz
neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.bz2
neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.zip
delay
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt')
-rw-r--r--src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt b/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
index 9040f95..cec0b9e 100644
--- a/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
+++ b/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
@@ -33,6 +33,7 @@ class ShellExecutionContext(
fun run(
console: KConsole, command: Command, name: String, args: List<String>
) {
+ console.state = KConsole.ConsoleState.IN_PROGRAM
val se = ShellExecutionContext(console, name, args)
command.runner.createCoroutine(se, object : Continuation<Unit> {
override val context: CoroutineContext