Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Added repository list screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental committed Oct 13, 2009
1 parent 15cb123 commit 94a1b5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/net/sourcewalker/svnnotify/Application.java
Expand Up @@ -89,11 +89,24 @@ public void run() {
case HELP:
showHelpScreen();
break;
case LIST_REPO:
listRepos();
break;
default:
System.out.println("Error: Application mode not defined!");
}
}

private void listRepos() {
System.out.println("Configured repositories:");
List<IRepository> repos = database.getRepositories();
for (IRepository repo: repos) {
System.out.println(repo.getName());
System.out.println(" URL: " + repo.getURL().toString());
System.out.println();
}
}

private void showHelpScreen() {
System.out.println("usage:");
System.out.println("\tsvn-notify");
Expand Down

0 comments on commit 94a1b5a

Please sign in to comment.