@Component public class TaskCommands extends Object implements org.springframework.shell.core.CommandMarker
| Constructor and Description |
|---|
TaskCommands() |
@CliAvailabilityIndicator(value={"task list","task create","task launch","task status","task destroy"})
public boolean available()
@CliCommand(value="task list",
help="List created tasks")
public org.springframework.shell.table.Table list()
@CliCommand(value="task create",
help="Create a new task definition")
public String create(@CliOption(mandatory=true,key={"","name"},help="the name to give to the task")
String name,
@CliOption(mandatory=true,key="definition",help="a task definition, using the DSL (e.g. \"taskName\")")
String dsl)
@CliCommand(value="task launch",
help="Launch a previously created task")
public String launch(@CliOption(key={"","name"},help="the name of the task to launch",mandatory=true)
String name,
@CliOption(key="properties",help="the properties for this launch",mandatory=false)
String properties,
@CliOption(key="propertiesFile",help="the properties for this launch (as a File)",mandatory=false)
File propertiesFile)
throws IOException
IOException@CliCommand(value="task destroy",
help="Destroy an existing task")
public String destroy(@CliOption(key={"","name"},help="the name of the task to destroy",mandatory=true)
String name)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.