summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/dev-plugins.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt
index 2e9c83cd77..1cdb8fd18d 100644
--- a/Documentation/dev-plugins.txt
+++ b/Documentation/dev-plugins.txt
@@ -494,6 +494,9 @@ by PrintHello class will be available to users as:
$ ssh -p 29418 review.example.com helloworld print
----
+[[multiple-commands]]
+=== Multiple Commands bound to one implementation
+
Multiple SSH commands can be bound to the same implementation class. For
example a Gerrit Shell plugin can bind different shell commands to the same
implementation class:
@@ -532,6 +535,9 @@ $ ssh -p 29418 review.example.com shell ls
$ ssh -p 29418 review.example.com shell ps
----
+[[root-level-commands]]
+=== Root Level Commands
+
Single command plugins are also supported. In this scenario plugin binds
SSH command to its own name. `SshModule` must inherit from
`SingleCommandPluginModule` class: