Commit f08b283b authored by Phillip Webb's avatar Phillip Webb

Implement CLI --version command

parent 02f0c2b6
......@@ -17,6 +17,7 @@
package org.springframework.boot.cli.command;
import org.springframework.boot.cli.Command;
import org.springframework.boot.cli.Log;
/**
* {@link Command} to display the 'version' number.
......@@ -31,8 +32,7 @@ public class VersionCommand extends AbstractCommand {
@Override
public void run(String... args) {
// FIXME: add version introspection
throw new IllegalStateException("Not implemented");
Log.info("Spring CLI v" + getClass().getPackage().getImplementationVersion());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment