@CliCommand(value = LIST_STEP_EXECUTIONS, help = "List all step executions for the provided job execution id")
	public Table listStepExecutions(
			@CliOption(mandatory = true, key = { "", "id" }, help = "the id of the job execution") long jobExecutionId) {

		final List<StepExecutionInfoResource> stepExecutions = jobOperations().listStepExecutions(jobExecutionId);
		final Table table = new Table();
		table.addHeader(1, new TableHeader("Id"))
				.addHeader(2, new TableHeader("Step Name"))
				.addHeader(3, new TableHeader("Job Exec ID"))
				.addHeader(4, new TableHeader("Start Time"))
				.addHeader(5, new TableHeader("End Time"))
				.addHeader(6, new TableHeader("Status"));

		for (StepExecutionInfoResource stepExecutionInfoResource : stepExecutions) {

			final String localStartTime = this.configuration.getLocalTime(stepExecutionInfoResource.getStepExecution().getStartTime());
			final Date endTimeDate = stepExecutionInfoResource.getStepExecution().getEndTime();
			final String localEndTime = (endTimeDate == null) ? "" : this.configuration.getLocalTime(endTimeDate);
			final TableRow row = new TableRow();

			row.addValue(1, String.valueOf(stepExecutionInfoResource.getStepExecution().getId()))
					.addValue(2, stepExecutionInfoResource.getStepExecution().getStepName())
					.addValue(3, String.valueOf(stepExecutionInfoResource.getJobExecutionId()))
					.addValue(4, localStartTime)
					.addValue(5, localEndTime)
					.addValue(6, stepExecutionInfoResource.getStepExecution().getStatus().name());
			table.getRows().add(row);
		}

		return table;
	}
Job commands.

@author Glenn Renfro
@author Ilayaperumal Gopinathan
@author Gunnar Hillert
@author Eric Bottard
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/JobCommands.java