All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jio.console.ExitCommand Maven / Gradle / Ivy

There is a newer version: 3.0.0-RC2
Show newest version
package jio.console;

import jio.IO;
import jsonvalues.JsObj;

import java.util.function.Function;

/**
 * Represents a command that shuts down the console. Usage: {@code exit}
 * 

* This command terminates the console application. */ class ExitCommand extends Command { private static final String COMMAND_NAME = "exit"; public ExitCommand() { super(COMMAND_NAME, "Shut down the console"); } @Override public Function> apply(final JsObj conf, final State state ) { System.out.println("bye bye"); System.exit(0); return null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy