01: package org.mvel.sh.command.file;
02:
03: import org.mvel.sh.Command;
04: import org.mvel.sh.ShellSession;
05:
06: /**
07: * Created by IntelliJ IDEA.
08: * User: christopherbrock
09: * Date: Oct 9, 2007
10: * Time: 1:16:22 PM
11: * To change this template use File | Settings | File Templates.
12: */
13: public class PrintWorkingDirectory implements Command {
14:
15: public Object execute(ShellSession session, String[] args) {
16: System.out.println(session.getEnv().get("$CWD"));
17: return null;
18: }
19:
20: public String getDescription() {
21: return "prints the current working directory";
22: }
23:
24: public String getHelp() {
25: return "no help yet.";
26: }
27: }
|