Add description to ssh command Change-Id: If9e5c5659afa64281e634ac4fe54b0c7be121bdf
diff --git a/src/main/java/com/google/gerrit/plugins/HelloWorldCommandModule.java b/src/main/java/com/google/gerrit/plugins/HelloWorldCommandModule.java index 770c6f3..a55aad5 100644 --- a/src/main/java/com/google/gerrit/plugins/HelloWorldCommandModule.java +++ b/src/main/java/com/google/gerrit/plugins/HelloWorldCommandModule.java
@@ -19,6 +19,7 @@ public class HelloWorldCommandModule extends PluginCommandModule { @Override protected void configureCommands() { - command("print").to(PrintHelloWorldCommand.class); + command(PrintHelloWorldCommand.class); + alias("say-hello", PrintHelloWorldCommand.class); } }
diff --git a/src/main/java/com/google/gerrit/plugins/PrintHelloWorldCommand.java b/src/main/java/com/google/gerrit/plugins/PrintHelloWorldCommand.java index d5412ed..7122c98 100644 --- a/src/main/java/com/google/gerrit/plugins/PrintHelloWorldCommand.java +++ b/src/main/java/com/google/gerrit/plugins/PrintHelloWorldCommand.java
@@ -14,11 +14,13 @@ package com.google.gerrit.plugins; +import com.google.gerrit.sshd.CommandMetaData; import com.google.gerrit.sshd.SshCommand; import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.Option; +@CommandMetaData(name="print", descr="Print greeting in different languages") public final class PrintHelloWorldCommand extends SshCommand { @Argument(usage = "name of user")