Class InitCommand
java.lang.Object
org.springframework.boot.cli.command.AbstractCommand
org.springframework.boot.cli.command.OptionParsingCommand
org.springframework.boot.cli.command.init.InitCommand
- All Implemented Interfaces:
Command
Command that initializes a project using Spring initializr.- Since:
- 1.2.0
- Author:
- Stephane Nicoll, EddĂș MelĂ©ndez, Vignesh Thangavel Ilangovan
-
Constructor Summary
ConstructorsConstructorDescriptionInitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionReturn some examples for the command.Returns usage help for the command.Methods inherited from class org.springframework.boot.cli.command.OptionParsingCommand
getHandler, getHelp, getOptionsHelp, runMethods inherited from class org.springframework.boot.cli.command.AbstractCommand
getDescription, getName
-
Constructor Details
-
InitCommand
public InitCommand() -
InitCommand
public InitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler)
-
-
Method Details
-
getUsageHelp
Description copied from interface:CommandReturns usage help for the command. This should be a simple one-line string describing basic usage. e.g. '[options] <file>'. Do not include the name of the command in this string.- Specified by:
getUsageHelpin interfaceCommand- Overrides:
getUsageHelpin classAbstractCommand- Returns:
- the command's usage help
-
getExamples
Description copied from interface:CommandReturn some examples for the command.- Specified by:
getExamplesin interfaceCommand- Overrides:
getExamplesin classAbstractCommand- Returns:
- the command's examples
-