commit | 922d13cc677c8a4bd8065f9097f09c374e95fe4b | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Wed Feb 27 00:21:33 2013 +0100 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Mar 01 16:12:13 2013 +0900 |
tree | 480264e349aa920bf0bf9963444f5f7c0f2ea0e5 | |
parent | 56adb05b669b621b97640ceac279f8284619e516 [diff] |
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")