|
Last change
on this file since 203 was
175,
checked in by sherbold, 14 years ago
|
- code documentation and formatting
|
|
File size:
678 bytes
|
| Line | |
|---|
| 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 | * Command to terminate an application.
|
|---|
| 11 | * </p>
|
|---|
| 12 | *
|
|---|
| 13 | * @author Steffen Herbold
|
|---|
| 14 | * @version 1.0
|
|---|
| 15 | */
|
|---|
| 16 | public class CMDexit implements Command {
|
|---|
| 17 |
|
|---|
| 18 | /*
|
|---|
| 19 | * (non-Javadoc)
|
|---|
| 20 | *
|
|---|
| 21 | * @see databasebuilder.console.commands.Command#help()
|
|---|
| 22 | */
|
|---|
| 23 | @Override
|
|---|
| 24 | public void help() {
|
|---|
| 25 | Console.println("Usage: exit");
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | /*
|
|---|
| 29 | * (non-Javadoc)
|
|---|
| 30 | *
|
|---|
| 31 | * @see de.ugoe.cs.util.console.Command#run(java.util.List)
|
|---|
| 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.