@Override
protected Object execute(final CommandContext context, final NexusClient client) throws Exception {
assert context != null;
assert client != null;
IO io = context.getIo();
List<StagingProfileRepository> repos = client.ext(StagingClient.class).listRepositories(profileId);
for (StagingProfileRepository repo : repos) {
io.println("ID: {}", repo.getRepositoryId());
io.println(" Profile ID: {}", repo.getProfileId());
io.println(" Description: {}", repo.getDescription());
io.println(" Type: {}", repo.getType());
io.println(" User ID: {}", repo.getUserId());
}
return repos;
}