mirror of
https://github.com/google/nomulus
synced 2026-09-05 23:57:01 +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:
@@ -90,8 +90,8 @@ public class RegistryToolTest {
|
||||
/**
|
||||
* Gets the set of all non-abstract classes implementing the {@link Command} interface (abstract
|
||||
* class and interface subtypes of Command aren't expected to have cli commands). Note that this
|
||||
* also filters out HelpCommand, which has special handling in {@link RegistryCli} and isn't in
|
||||
* the command map.
|
||||
* also filters out HelpCommand and ShellCommand, which have special handling in {@link
|
||||
* RegistryCli} and aren't in the command map.
|
||||
*
|
||||
* @throws IOException if reading the classpath resources fails.
|
||||
*/
|
||||
@@ -105,7 +105,8 @@ public class RegistryToolTest {
|
||||
if (Command.class.isAssignableFrom(clazz)
|
||||
&& !Modifier.isAbstract(clazz.getModifiers())
|
||||
&& !Modifier.isInterface(clazz.getModifiers())
|
||||
&& !clazz.equals(HelpCommand.class)) {
|
||||
&& !clazz.equals(HelpCommand.class)
|
||||
&& !clazz.equals(ShellCommand.class)) {
|
||||
builder.add((Class<? extends Command>) clazz);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user