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
public class InitCommand extends OptionParsingCommand
Command
that initializes a project using Spring initializr.- Since:
- 1.2.0
Constructor Summary
Constructors Constructor Description InitCommand()
InitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<HelpExample>
getExamples()
Return some examples for the command.String
getUsageHelp()
Returns usage help for the command.Methods inherited from class org.springframework.boot.cli.command.OptionParsingCommand
getHandler, getHelp, getOptionsHelp, run
Methods inherited from class org.springframework.boot.cli.command.AbstractCommand
getDescription, getName
Constructor Detail
InitCommand
public InitCommand()
InitCommand
public InitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler)
Method Detail
getUsageHelp
public String getUsageHelp()
Description copied from interface:Command
Returns 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:
getUsageHelp
in interfaceCommand
- Overrides:
getUsageHelp
in classAbstractCommand
- Returns:
- the command's usage help
getExamples
public Collection<HelpExample> getExamples()
Description copied from interface:Command
Return some examples for the command.- Specified by:
getExamples
in interfaceCommand
- Overrides:
getExamples
in classAbstractCommand
- Returns:
- the command's examples