/*
 * $Id: exit.java,v 1.2 2005/09/07 13:38:06 rampil Exp $
 * Copyright (c) 2004 LOGICAL-PARADOX.ORG
 */
package org.logical_paradox.vsan.tools.console.command;

import java.io.OutputStream;

import org.logical_paradox.shell.Argument;
import org.logical_paradox.shell.Command;
import org.logical_paradox.shell.ResultCode;
import org.logical_paradox.shell.ShellEnv;
import org.logical_paradox.shell.exception.CommandExecutionException;
import org.logical_paradox.shell.exception.TerminationException;

/**
 * <pre>
 * ■exit
 * 
 * 【動作仕様】
 * シェルを終了します。
 * 
 * 【書式】
 * exit
 * </pre>
 * 
 * @author satoshi akabane@logical-paradox.org
 * @version $Revision: 1.2 $
 */
public class exit implements Command {
	public static final String USAGE = "exit";

	public ResultCode execute(OutputStream arg0, ShellEnv arg1, Argument arg2) throws CommandExecutionException, TerminationException {
		throw new TerminationException();
	}
	public String usage() {
		return USAGE;
	}
}
