com.woorea.openstack.console.Environment Maven / Gradle / Ivy
The newest version!
package com.woorea.openstack.console;
import java.util.Map;
import java.util.TreeMap;
public class Environment {
protected final Environment parent;
protected Map commands = new TreeMap();
public Environment(Environment parent) {
register(Commands.EXIT);
register(Commands.SET);
this.parent = parent;
}
public Environment() {
this(null);
}
public void register(Command command) {
commands.put(command.name, command);
}
public String getPrompt() {
return "> ";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy