protected void doExecute(RepositoryAdmin admin) { ShellTable table = new ShellTable(); table.column("Index"); table.column("OBR URL"); table.emptyTableText("No OBR repository URL"); Repository[] repos = admin.listRepositories(); if (repos != null) { for (int i = 0; i < repos.length; i++) { table.addRow().addContent(i, repos[i].getURI()); } } table.print(System.out, !noFormat); }