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>
|
---|
[175] | 10 | * Command to terminate an application.
|
---|
[1] | 11 | * </p>
|
---|
| 12 | *
|
---|
| 13 | * @author Steffen Herbold
|
---|
[175] | 14 | * @version 1.0
|
---|
[1] | 15 | */
|
---|
| 16 | public class CMDexit implements Command {
|
---|
| 17 |
|
---|
[175] | 18 | /*
|
---|
| 19 | * (non-Javadoc)
|
---|
| 20 | *
|
---|
[1] | 21 | * @see databasebuilder.console.commands.Command#help()
|
---|
| 22 | */
|
---|
| 23 | @Override
|
---|
| 24 | public void help() {
|
---|
| 25 | Console.println("Usage: exit");
|
---|
| 26 | }
|
---|
[175] | 27 |
|
---|
| 28 | /*
|
---|
| 29 | * (non-Javadoc)
|
---|
| 30 | *
|
---|
| 31 | * @see de.ugoe.cs.util.console.Command#run(java.util.List)
|
---|
[1] | 32 | */
|
---|
| 33 | @Override
|
---|
| 34 | public void run(List<Object> parameters) {
|
---|
| 35 | System.exit(0);
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.