Files
mtmc-web/src/jvmMain/kotlin/mtmc/os/shell/builtins/ExitCommand.kt

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"
}