SHL-69 - Extract "version" command from AbstractShell

This commit is contained in:
mpollack
2013-07-25 19:38:00 -04:00
parent e9f3de10cb
commit 344385116c
6 changed files with 94 additions and 29 deletions

View File

@@ -29,10 +29,8 @@ import org.springframework.stereotype.Component;
*/
@Component
@Order(Ordered.HIGHEST_PRECEDENCE)
public class MyBannerProvider extends DefaultBannerProvider
implements CommandMarker {
public class MyBannerProvider extends DefaultBannerProvider {
@CliCommand(value = { "version" }, help = "Displays current CLI version")
public String getBanner() {
StringBuffer buf = new StringBuffer();
buf.append("=======================================" + OsUtils.LINE_SEPARATOR);
@@ -42,7 +40,6 @@ public class MyBannerProvider extends DefaultBannerProvider
buf.append("=======================================" + OsUtils.LINE_SEPARATOR);
buf.append("Version:" + this.getVersion());
return buf.toString();
}
public String getVersion() {