1
0
mirror of https://github.com/google/nomulus synced 2026-01-11 00:10:36 +00:00

Add a "shell" pseudo-command to nomulus tool

Add the "shell" command which lets you run multiple other command in a single
session, sparing you the initialization costs for all but the first of them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188712815
This commit is contained in:
mmuller
2018-03-12 06:16:24 -07:00
committed by jianglai
parent 64986442bc
commit f1c29633fb
6 changed files with 256 additions and 35 deletions

View File

@@ -132,6 +132,8 @@ public final class RegistryTool {
public static void main(String[] args) throws Exception {
RegistryToolEnvironment.parseFromArgs(args).setup();
new RegistryCli().run("nomulus", args, COMMAND_MAP);
try (RegistryCli cli = new RegistryCli("nomulus", COMMAND_MAP)) {
cli.run(args);
}
}
}