类 InitCommand
- java.lang.Object
- org.springframework.boot.cli.command.AbstractCommand
- org.springframework.boot.cli.command.OptionParsingCommand
- org.springframework.boot.cli.command.init.InitCommand
- 所有已实现的接口:
Command
public class InitCommand extends OptionParsingCommand
Commandthat initializes a project using Spring initializr.- 从以下版本开始:
- 1.2.0
构造器概要
构造器 构造器 说明 InitCommand()InitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<HelpExample>getExamples()Return some examples for the command.StringgetUsageHelp()Returns usage help for the command.从类继承的方法 org.springframework.boot.cli.command.OptionParsingCommand
getHandler, getHelp, getOptionsHelp, run
从类继承的方法 org.springframework.boot.cli.command.AbstractCommand
getDescription, getName
构造器详细资料
InitCommand
public InitCommand()
InitCommand
public InitCommand(org.springframework.boot.cli.command.init.InitCommand.InitOptionHandler handler)
方法详细资料
getUsageHelp
public String getUsageHelp()
从接口复制的说明: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.- 指定者:
getUsageHelp在接口中Command- 覆盖:
getUsageHelp在类中AbstractCommand- 返回:
- the command's usage help
getExamples
public Collection<HelpExample> getExamples()
从接口复制的说明:CommandReturn some examples for the command.- 指定者:
getExamples在接口中Command- 覆盖:
getExamples在类中AbstractCommand- 返回:
- the command's examples