generated from rnentjes/kotlin-server-web-undertow
16 lines
397 B
Kotlin
16 lines
397 B
Kotlin
package mtmc.os.shell.builtins
|
|
|
|
import mtmc.emulator.MonTanaMiniComputer
|
|
import mtmc.os.shell.ShellCommand
|
|
import mtmc.tokenizer.MTMCTokenizer
|
|
|
|
class ExitCommand : ShellCommand() {
|
|
public override fun exec(tokens: MTMCTokenizer, computer: MonTanaMiniComputer) {
|
|
computer.console.println("Goodbye!")
|
|
System.exit(1)
|
|
}
|
|
|
|
override val help: String
|
|
get() = "exit - exits the system"
|
|
}
|