Class VersionCommand
- java.lang.Object
- org.springframework.boot.cli.command.AbstractCommand
- org.springframework.boot.cli.command.core.VersionCommand
- All Implemented Interfaces:
Command
public class VersionCommand extends AbstractCommand
Command
to display the 'version' number.
Constructor Summary
Constructors Constructor Description VersionCommand()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExitStatus
run(String... args)
Run the command.Methods inherited from class org.springframework.boot.cli.command.AbstractCommand
getDescription, getExamples, getHelp, getName, getOptionsHelp, getUsageHelp
Constructor Detail
VersionCommand
public VersionCommand()
Method Detail
run
public ExitStatus run(String... args)
Description copied from interface:Command
Run the command.- Parameters:
args
- command arguments (this will not include the command itself)- Returns:
- the outcome of the command