added first drop of list-repositories command

This commit is contained in:
Sebastian Sdorra
2011-05-14 16:55:24 +02:00
parent 907f39759d
commit 282ec032d8
5 changed files with 72 additions and 6 deletions

View File

@@ -155,8 +155,18 @@ public class App
session = createSession();
}
subcommand.init(input, output, i18n, session);
subcommand.run(arguments);
try
{
subcommand.init(input, output, i18n, session);
subcommand.run(arguments);
}
finally
{
if (session != null)
{
session.close();
}
}
}
}
@@ -222,7 +232,6 @@ public class App
@Argument(
index = 0,
metaVar = "metaVar_command",
required = true,
handler = SubCommandHandler.class
)
private SubCommand subcommand;