Update sample to refelect changes from SHL-48

This commit is contained in:
Mark Pollack
2012-09-19 14:29:32 -04:00
parent ea25910fce
commit e7fc88d1e7

View File

@@ -17,10 +17,10 @@ package org.springframework.shell.samples.helloworld.commands;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.shell.support.util.StringUtils;
import org.springframework.shell.core.CommandMarker;
import org.springframework.shell.core.annotation.CliCommand;
import org.springframework.shell.plugin.support.DefaultBannerProvider;
import org.springframework.shell.support.util.OsUtils;
import org.springframework.stereotype.Component;
/**
@@ -35,11 +35,11 @@ public class MyBannerProvider extends DefaultBannerProvider
@CliCommand(value = { "version" }, help = "Displays current CLI version")
public String getBanner() {
StringBuffer buf = new StringBuffer();
buf.append("=======================================" + StringUtils.LINE_SEPARATOR);
buf.append("* *"+ StringUtils.LINE_SEPARATOR);
buf.append("* HelloWorld *" +StringUtils.LINE_SEPARATOR);
buf.append("* *"+ StringUtils.LINE_SEPARATOR);
buf.append("=======================================" + StringUtils.LINE_SEPARATOR);
buf.append("=======================================" + OsUtils.LINE_SEPARATOR);
buf.append("* *"+ OsUtils.LINE_SEPARATOR);
buf.append("* HelloWorld *" +OsUtils.LINE_SEPARATOR);
buf.append("* *"+ OsUtils.LINE_SEPARATOR);
buf.append("=======================================" + OsUtils.LINE_SEPARATOR);
buf.append("Version:" + this.getVersion());
return buf.toString();