blob: 4dd4d1e46ec15c0ddddd367254d2110c6950fc18 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.core.environment.console.cmd;
import org.eclipse.osee.ote.core.environment.console.ConsoleCommand;
import org.eclipse.osee.ote.core.environment.console.ConsoleShell;
/**
* @author Ken J. Aguilar
*/
public class LastCmd extends ConsoleCommand {
private static final String NAME = "lc";
private static final String DESCRIPTION = "Executes the last command executed";
public LastCmd() {
super(NAME, DESCRIPTION);
}
@Override
protected void doCmd(ConsoleShell shell, String[] switches, String[] args) {
shell.runLast();
shell.setSaveLastCmdFlag(false);
}
}