@Override public License getLicense() { return new LicenseSupport("Apache License, Version 2.0", "http://www.apache.org/licenses/LICENSE-2.0.txt"); } }
public String getDisplayName() { return getProgramName(); }
public File getShellContextDir() { return resolveFile(new File(getShellHomeDir(), "etc")); }
public File getUserHomeDir() { return resolveFile(getProperties().getProperty("user.home")); }
protected void loadProfileScripts() throws Exception { if (!isLoadProfileScripts()) return; String fileName = branding.getProfileScriptName(); loadSharedScript(fileName); loadUserScript(fileName); }
protected void loadInteractiveScripts() throws Exception { if (!isLoadInteractiveScripts()) return; String fileName = branding.getInteractiveScriptName(); loadSharedScript(fileName); loadUserScript(fileName); }
protected File resolveFile(final String fileName) { assert fileName != null; return resolveFile(new File(fileName)); }
public String getVersion() { return getProperties().getProperty(SHELL_VERSION); }
protected void renderWelcomeMessage(final IO io) { renderMessage(io, branding.getWelcomeMessage()); }
protected void renderGoodbyeMessage(final IO io) { renderMessage(io, branding.getGoodbyeMessage()); }
@Override public License getLicense() { return new LicenseSupport("Apache License, Version 2.0", "http://www.apache.org/licenses/LICENSE-2.0.txt"); } }
public String getScriptExtension() { return getProgramName(); }
public File getShellHomeDir() { return resolveFile(System.getProperty(SHELL_HOME)); }
public String getProgramName() { return getProperties().getProperty(SHELL_PROGRAM); }
public License getLicense() { return new LicenseSupport(null, (URL)null); }
public String getPreferencesBasePath() { return getProgramName(); }
public String getInteractiveScriptName() { return String.format("%s.rc", getProgramName()); }
public String getPrompt() { return String.format("@|bold %s|@> ", getProgramName()); }
public String getProfileScriptName() { return String.format("%s.profile", getProgramName()); }
public String getHistoryFileName() { return String.format("%s.history", getProgramName()); }