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

Last change on this file since 137 was 1, checked in by sherbold, 14 years ago
File size: 680 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 * Implements a command to terminate an application.
11 * </p>
12 *
13 * @author Steffen Herbold
14 *
15 */
16public 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.