Rev | Line | |
---|
[1] | 1 | package de.ugoe.cs.util.console.defaultcommands;
|
---|
| 2 |
|
---|
| 3 | import java.util.List;
|
---|
| 4 |
|
---|
| 5 | import de.ugoe.cs.util.console.Command;
|
---|
| 6 | import de.ugoe.cs.util.console.Console;
|
---|
| 7 |
|
---|
| 8 | /**
|
---|
| 9 | * <p>
|
---|
| 10 | * Implements a command to terminate an application.
|
---|
| 11 | * </p>
|
---|
| 12 | *
|
---|
| 13 | * @author Steffen Herbold
|
---|
| 14 | *
|
---|
| 15 | */
|
---|
| 16 | public class CMDexit implements Command {
|
---|
| 17 |
|
---|
| 18 | /* (non-Javadoc)
|
---|
| 19 | * @see databasebuilder.console.commands.Command#help()
|
---|
| 20 | */
|
---|
| 21 | @Override
|
---|
| 22 | public void help() {
|
---|
| 23 | Console.println("Usage: exit");
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * <p>
|
---|
| 28 | * Terminates the programm.
|
---|
| 29 | * </p>
|
---|
| 30 | * <p>
|
---|
| 31 | * Usage: <code>exit</code>
|
---|
| 32 | * </p>
|
---|
| 33 | */
|
---|
| 34 | @Override
|
---|
| 35 | public void run(List<Object> parameters) {
|
---|
| 36 | System.exit(0);
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.