@CliCommand(value = LIST_JOBS, help = "List all jobs")
	public Table listJobs() {

		final PagedResources<JobDefinitionResource> jobs = jobOperations().list();
		final Table table = new Table()
				.addHeader(1, new TableHeader("Job Name"))
				.addHeader(2, new TableHeader("Job Definition"))
				.addHeader(3, new TableHeader("Status"));

		for (JobDefinitionResource jobDefinitionResource : jobs) {
			table.newRow()
					.addValue(1, jobDefinitionResource.getName())
					.addValue(2, jobDefinitionResource.getDefinition())
					.addValue(3, jobDefinitionResource.getStatus());
		}
		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