source: trunk/JavaHelperLib/src/de/ugoe/cs/util/console/defaultcommands/CMDexit.java @ 186

Last change on this file since 186 was 175, checked in by sherbold, 13 years ago
  • code documentation and formatting
File size: 678 bytes
Line 
1package de.ugoe.cs.util.console.defaultcommands;
2
3import java.util.List;
4
5import de.ugoe.cs.util.console.Command;
6import 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 */
16public 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.